HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //var/lib/dpkg/info/proftpd-core.preinst
#!/bin/sh 

set -e

# summary of how this script can be called:
#        * <new-preinst> `install'
#        * <new-preinst> `install' <old-version>
#        * <new-preinst> `upgrade' <old-version>
#        * <old-preinst> `abort-upgrade' <new-version>
#

[ -f /etc/logrotate.d/proftpd-basic ] && \
	mv -f /etc/logrotate.d/proftpd-basic /etc/logrotate.d/proftpd-core

if [ "$1" = "upgrade" ]; then
     invoke-rc.d --skip-systemd-native proftpd stop >/dev/null 2>&1 || true 
fi