1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Add stop services to uninstaller

This commit is contained in:
billz 2020-12-05 14:30:11 +00:00
parent eb7c50be26
commit 3f4901495a

View File

@ -205,6 +205,16 @@ function _remove_sudoers() {
echo "Done." echo "Done."
} }
# Stops any running services related to project
function _stop_services() {
_install_log "Stopping services"
echo "Stopping hostapd, dnsmasq & dhcpcd"
sudo systemctl stop hostapd.service || _install_error "Unable to stop hostapd"
sudo systemctl stop dnsmasq.service || _install_error "Unable to stop dnsmasq"
sudo systemctl stop dhcpcd.service || _install_error "Unable to stop dhcpcd"
echo "Done."
}
function _uninstall_complete() { function _uninstall_complete() {
_install_log "Uninstall completed" _install_log "Uninstall completed"
echo "It is recommended that you reboot your system as a final step." echo "It is recommended that you reboot your system as a final step."
@ -218,6 +228,7 @@ function _remove_raspap() {
_remove_raspap_directories _remove_raspap_directories
_remove_installed_packages _remove_installed_packages
_remove_sudoers _remove_sudoers
_stop_services
_uninstall_complete _uninstall_complete
} }