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