#!/bin/sh
if [ "$1" != "upgrade" -a "$1" != "abort-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
/etc/usermin/stop >/dev/null 2>&1 /dev/null 2>&1 /dev/null`
if [ -x "$systemctlcmd" ]; then
$systemctlcmd stop usermin >/dev/null 2>&1