403Webshell
Server IP : 192.241.186.36  /  Your IP : 216.73.216.164
Web Server : Apache/2.4.29 (Ubuntu)
System : Linux webserver7 4.15.0-194-generic #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022 x86_64
User : root ( 0)
PHP Version : 7.4.32
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  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/lib/dpkg/info/sendmail-base.prerm
#!/bin/sh
set -e;

PACKAGE=sendmail-base;

if [ "$1" = "remove" ]; then
		if [ -x /usr/sbin/update-inetd ]; then
			update-inetd --group MAIL --disable smtp,smtps,submission;
			fi;

		# Make sure /etc/aliases is left (move it from /etc/mail if needed)
		if [ -L /etc/mail/aliases ]; then
			rm -f /etc/mail/aliases;
		elif [ -f /etc/mail/aliases ] \
		&&   [ -L /etc/aliases ]; then
			mv /etc/mail/aliases /etc/aliases;
			fi;

		# Remove pseudo conffiles (managed by sendmail)
		rm -f	/etc/cron.d/sendmail;

		# Remove files scattered across the system that
		# happened to be created by sendmail
		rm -f /usr/lib/sasl/Sendmail.conf

		# Remove those files created by sendmail
		rm -rf	/var/lib/sendmail;
		rm -rf	/var/run/sendmail;
		# Note: syslog really owns these files
		#rm -f	/var/log/mail/*;
		#rm -f	/var/log/mail.log;
		# Note: these can lead to a loss of mail!!!!
		if [ -x /etc/init.d/sendmail ]; then
			/etc/init.d/sendmail clean;
			fi;
		if [ -L /var/spool/mqueue ]; then
			rmdir --ignore-fail-on-non-empty \
			`readlink -fn /var/spool/mqueue`;
		elif [ -d /var/spool/mqueue ]; then
			rmdir	--ignore-fail-on-non-empty \
				/var/spool/mqueue;
			fi;
		if [ -L /var/spool/mqueue-client ]; then
			rmdir	--ignore-fail-on-non-empty \
			`readlink -fn /var/spool/mqueue-client`;
		elif [ -d /var/spool/mqueue-client ]; then
			rmdir	--ignore-fail-on-non-empty \
				/var/spool/mqueue-client;
			fi;

		# Remove sendmail built configuration files
		rm -f	/etc/mail/*.db \
			/etc/mail/*.dir \
			/etc/mail/*.pag;
		rm -f	/etc/mail/sendmail.cf \
			/etc/mail/sendmail.cf.old \
			/etc/mail/sendmail.cf.errors \
			/etc/mail/sendmail.mc.old \
			/etc/mail/submit.cf \
			/etc/mail/submit.cf.errors \
			/etc/mail/submit.mc.old \
			/etc/mail/databases \
			/etc/mail/Makefile \
			;
		rm -rf /etc/mail/smrsh \
			/etc/mail/sasl \
			/etc/mail/tls;

		# Remove empty files (probably touched databases)
		find /etc/mail -maxdepth 1 -size 0 | xargs -r rm;
fi

if [ "$1" = "upgrade" ]; then
		# Potentially move the old configuration file to the new name -
		# before it gets deleted (for not existing in the new package)
		mv -f /etc/default/sendmail \
			/etc/mail/sendmail.conf 2>/dev/null || true;

		# Prevent cronjob from running during upgrade...
		if [ -f /etc/cron.d/sendmail ]; then
			echo "#prerm" > /etc/cron.d/sendmail;
			fi;
fi

# Automatically added by dh_installdeb/11.1.4ubuntu1
dpkg-maintscript-helper rm_conffile /etc/dhcp3/dhclient-exit-hooks.d/sendmail 8.14.4-2.2\~ -- "$@"
# End automatically added section


Youez - 2016 - github.com/yon3zu
LinuXploit