Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 3.23.103.14
Current Path : /var/lib/dpkg/info/ |
| Current File : /var/lib/dpkg/info/rsyslog.preinst |
#!/bin/sh
set -e
if [ "$1" = "install" ] && [ -n "$2" ] ; then
[ -f /etc/logrotate.d/rsyslog.disabled ] && mv -f /etc/logrotate.d/rsyslog.disabled /etc/logrotate.d/rsyslog
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
fi
# Automatically added by dh_installdeb/13.6ubuntu1
dpkg-maintscript-helper rm_conffile /etc/default/rsyslog 8.1905.0-4\~ -- "$@"
dpkg-maintscript-helper rm_conffile /etc/init.d/rsyslog 8.2110.0-2\~ -- "$@"
# End automatically added section
|