K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / var / lib / dpkg / info /
server ip : 172.67.156.115

your ip : 172.69.7.204

H O M E


Filename/var/lib/dpkg/info/rsyslog.preinst
Size1.58 kb
Permissionrwxr-xr-x
Ownerroot : root
Create time27-Apr-2025 09:50
Last modified04-Dec-2013 21:16
Last accessed06-Jul-2025 22:12
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh

set -e

if [ "$1" = "install" -a -n "$2" ] ; then
[ -f /etc/logrotate.d/rsyslog.disabled ] && mv -f /etc/logrotate.d/rsyslog.disabled /etc/logrotate.d/rsyslog
fi

if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt "5.7.8-1" ; then
rm -f /etc/systemd/system/sockets.target.wants/rsyslog.socket
fi

disable_profile() {
APP_CONFFILE="/etc/apparmor.d/usr.sbin.rsyslogd"
APP_DISABLE="/etc/apparmor.d/disable/usr.sbin.rsyslogd"
# Create a symlink to the yet-to-be-unpacked profile
if [ ! -e "$APP_CONFFILE" ]; then
mkdir -p `dirname $APP_DISABLE` 2>/dev/null || true
ln -sf $APP_CONFFILE $APP_DISABLE
fi
}

if [ "$1" = "install" ]; then
# Disable AppArmor profile on install
disable_profile
elif [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt "5.8.6-1ubuntu5" ; then
# Disable AppArmor on upgrade from earlier than when we first shipped
# the profile if the user does not already have a profile defined
disable_profile
fi

# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "/etc/init.d/rsyslog" ] && [ -L "/etc/init.d/rsyslog" ] \
&& [ $(readlink -f "/etc/init.d/rsyslog") = /lib/init/upstart-job ]
then
rm -f "/etc/init.d/rsyslog"
fi
fi
# End automatically added section
# Automatically added by dh_installinit
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "/etc/init.d/dmesg" ] && [ -L "/etc/init.d/dmesg" ] \
&& [ $(readlink -f "/etc/init.d/dmesg") = /lib/init/upstart-job ]
then
rm -f "/etc/init.d/dmesg"
fi
fi
# End automatically added section


exit 0