%PDF-1.4 %Óëéá 1 0 obj <> endobj 3 0 obj <> endobj 4 0 obj <
| Server IP : 212.252.79.165 / Your IP : 216.73.217.172 [ Web Server : Apache System : Linux 212-252-79-165.cprapid.com 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64 User : cehaburo ( 1001) PHP Version : 8.1.33 Disable Function : exec,passthru,shell_exec,system Domains : 48 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/cehaburo/public_html/images/product/anon_sym/anon/var/lib/dpkg/info/ |
Upload File : |
#!/bin/bash
set -e
# https://wiki.debian.org/MaintainerScripts
## <asset scriplets/pre>
# in all pre
pre_upgrade() {
# on upgrades we need to stop exim while we rebuild the configuration
echo "Stopping previous version of exim on upgrade"
/usr/local/cpanel/scripts/restartsrv exim --stop ||:
}
# Install, not upgrade
pre_install() {
hname=`/bin/hostname`
if [ -e "/etc/valiases/${hname}" ]; then
/bin/rm -f /etc/valiases/${hname}
fi
echo "Resetting Exim to cPanel Defaults and Installing the Latest Version"
for file in /etc/rc.d/init.d/exim /etc/systemd/system/exim.service /etc/exim.conf /etc/exim.pl /usr/sbin/sendmail /usr/lib/sendmail
do
if [ -f "$file" ]; then
if [ ! -L $file ]; then
/usr/bin/chattr -i $file
fi
fi
done
for file in /etc/localdomains /etc/aliases /etc/secondarymx
do
if [ -e $file ]; then
/bin/cp -af $file ${file}.eximreset
fi
done
/bin/rm -f /usr/share/amavis/amavis-filter
/bin/rm -f /etc/exim.crt.preinstall
if [ -e '/etc/exim.crt' ]; then
/bin/mv -f /etc/exim.crt /etc/exim.crt.preinstall
/bin/cp -af /etc/exim.crt.preinstall /etc/exim.crt
fi
/bin/rm -f /etc/exim.key.preinstall
if [ -e '/etc/exim.key' ]; then
/bin/mv -f /etc/exim.key /etc/exim.key.preinstall
/bin/cp -af /etc/exim.key.preinstall /etc/exim.key
fi
/usr/sbin/useradd -c "Exim" -u 47 -s /bin/false -r -d /var/spool/mqueue mailnull 2> /dev/null || :
/usr/sbin/groupadd -f -r mailnull >/dev/null 2>&1
/usr/sbin/groupadd -f -r mailtrap >/dev/null 2>&1
}
## </asset>
case "$1" in
upgrade)
pre_upgrade;
pre_install;
;;
install)
pre_install;
;;
esac
exit 0