1
0
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:
billz 2020-12-06 09:11:43 +00:00
parent b832954f05
commit e8219c70ec

View File

@ -140,7 +140,9 @@ function _remove_raspap_directories() {
# Removes raspapd.service # Removes raspapd.service
function _remove_raspap_service() { function _remove_raspap_service() {
_install_log "Removing raspapd.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" sudo rm /lib/systemd/system/raspapd.service || _install_error "Unable to remove raspap.service file"
fi
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl disable raspapd.service || _install_error "Failed to disable raspap.service" sudo systemctl disable raspapd.service || _install_error "Failed to disable raspap.service"
echo "Done." echo "Done."