HEX
Server: Apache
System: Linux eisbus 6.8.12-9-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-9 (2025-03-16T19:18Z) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/lib/dpkg/info/webmin.prerm
#!/bin/sh

export PERL5LIB=/usr/share/webmin

exit_status=0
grep root=/usr/share/webmin /etc/webmin/miniserv.conf >/dev/null 2>&1 || exit_status="$?"
if [ "$exit_status" = 0 ]; then
    # Package is being removed, and no new version of webmin
    # has taken it's place. Run uninstalls and stop the server
    echo "Running uninstall scripts .."
    (cd /usr/share/webmin ; WEBMIN_CONFIG=/etc/webmin WEBMIN_VAR=/var/webmin LANG= /usr/share/webmin/run-uninstalls.pl)
    /etc/init.d/webmin stop >/dev/null 2>&1 </dev/null || /bin/true
    systemctl stop webmin -q || /bin/true
fi