From 96ed5072d8a7a537118a851344af6ac3a5255b68 Mon Sep 17 00:00:00 2001 From: billz Date: Sun, 31 Jan 2021 09:41:55 +0000 Subject: [PATCH] Update ambiguous msg, unlink & remove lighttpd conf --- installers/uninstall.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/installers/uninstall.sh b/installers/uninstall.sh index acfaaf24..d0a3d9fb 100755 --- a/installers/uninstall.sh +++ b/installers/uninstall.sh @@ -220,8 +220,11 @@ function _remove_sudoers() { } function _remove_lighttpd_config() { - echo "Removing ${raspap_sudoers}" - sudo rm "/etc/lighttpd/conf-available/50-raspap-router.conf" "/etc/lighttpd/conf-enabled/50-raspap-router.conf" || _install_error "Unable to remove lighttpd config" + echo "Unlinking 50-raspap-router.conf from /etc/lighttpd/conf-enabled/" + sudo unlink "/etc/lighttpd/conf-enabled/50-raspap-router.conf" || _install_error "Unable to unlink lighttpd config" + echo "Removing 50-raspap-router.conf from /etc/lighttpd/conf-available/" + sudo rm "/etc/lighttpd/conf-available/50-raspap-router.conf" || _install_error "Unable to remove lighttpd config" + sudo systemctl restart lighttpd.service || _install_status 1 "Unable to restart lighttpd" echo "Done." }