HEX
Server: Apache
System: Linux vmi2872685.contaboserver.net 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User: computingcore (1007)
PHP: 8.3.28
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