更新 simpleupdates/scripts/update_simpleadmin.sh
This commit is contained in:
parent
bc05c4db58
commit
fa098833b1
@ -90,6 +90,28 @@ remount_rw
|
|||||||
uninstall_simpleadmin() {
|
uninstall_simpleadmin() {
|
||||||
echo "Uninstalling Simpleadmin..."
|
echo "Uninstalling Simpleadmin..."
|
||||||
|
|
||||||
|
# Clean up Tailscale if present
|
||||||
|
if [ -d "/usrdata/tailscale" ]; then
|
||||||
|
echo "Cleaning up Tailscale..."
|
||||||
|
# Stop and logout from Tailscale
|
||||||
|
if [ -f "/usrdata/tailscale/tailscale" ]; then
|
||||||
|
/usrdata/tailscale/tailscale logout
|
||||||
|
/usrdata/tailscale/tailscale down
|
||||||
|
fi
|
||||||
|
|
||||||
|
systemctl stop tailscale 2>/dev/null
|
||||||
|
systemctl stop tailscale-webui 2>/dev/null
|
||||||
|
rm -f /lib/systemd/system/tailscale.service
|
||||||
|
|
||||||
|
# Remove Tailscale files and directories
|
||||||
|
rm -rf /usrdata/tailscale
|
||||||
|
rm -f /bin/tailscale
|
||||||
|
rm -f /bin/tailscaled
|
||||||
|
|
||||||
|
# Reload systemd
|
||||||
|
systemctl daemon-reload
|
||||||
|
fi
|
||||||
|
|
||||||
# Check if Lighttpd service is installed and remove it if present
|
# Check if Lighttpd service is installed and remove it if present
|
||||||
if [ -f "/lib/systemd/system/lighttpd.service" ]; then
|
if [ -f "/lib/systemd/system/lighttpd.service" ]; then
|
||||||
echo "Lighttpd detected, uninstalling Lighttpd webserver and its modules..."
|
echo "Lighttpd detected, uninstalling Lighttpd webserver and its modules..."
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user