#!/bin/sh printf "Are you sure you want to uninstall Webmin? (y/n) : " read answer printf "\n" if [ "$answer" = "y" ]; then /etc/webmin/stop echo "Running uninstall scripts .." (cd "/var/usr/webmin-1.941" ; WEBMIN_CONFIG=/etc/webmin WEBMIN_VAR=/var/webmin LANG= "/var/usr/webmin-1.941/run-uninstalls.pl") echo "Deleting /var/usr/webmin-1.941 .." rm -rf "/var/usr/webmin-1.941" echo "Deleting /etc/webmin .." rm -rf "/etc/webmin" echo "Done!" fi