mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Check if raspapd.service file exists
This commit is contained in:
parent
b832954f05
commit
e8219c70ec
@ -140,7 +140,9 @@ function _remove_raspap_directories() {
|
||||
# Removes raspapd.service
|
||||
function _remove_raspap_service() {
|
||||
_install_log "Removing raspapd.service"
|
||||
if [ -f /lib/systemd/system/raspapd.service ]; then
|
||||
sudo rm /lib/systemd/system/raspapd.service || _install_error "Unable to remove raspap.service file"
|
||||
fi
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl disable raspapd.service || _install_error "Failed to disable raspap.service"
|
||||
echo "Done."
|
||||
|
Loading…
Reference in New Issue
Block a user