HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //etc/webmin/uninstall.sh
#!/bin/sh
printf "Are you sure you want to uninstall Webmin? (y/n) : "
read answer
printf "\n"
if [ "$answer" = "y" ]; then
	echo "Removing Webmin package .."
	rm -f /usr/share/webmin/authentic-theme/manifest-*
	dpkg --remove --force-depends webmin
	systemctlcmd=`which systemctl 2>/dev/null`
	if [ -x "$systemctlcmd" ]; then
		$systemctlcmd stop webmin >/dev/null 2>&1 </dev/null
		rm -f /lib/systemd/system/webmin.service
		$systemctlcmd daemon-reload
	fi
	echo ".. done"
fi