|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/lib/dpkg/info/ |
Upload File : |
#!/bin/sh
set -eu
if [ "$1" = "upgrade" ]; then
# Fix up the location of the state files that previous versions used.
if [ -f /var/state/logrotate/status ]; then
if [ -f /var/lib/logrotate/status ]; then
rm /var/state/logrotate/status
else
mkdir -m 755 -p /var/lib/logrotate
mv /var/state/logrotate/status /var/lib/logrotate/status
fi
rm -rf /var/state/logrotate
fi
if [ -f /var/lib/logrotate.status ]; then
if [ -f /var/lib/logrotate/status ]; then
rm /var/lib/logrotate.status
else
mkdir -m 755 -p /var/lib/logrotate
mv /var/lib/logrotate.status /var/lib/logrotate/status
fi
fi
fi
exit 0