mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Added prompt to remove installed packages. Resolves #336
This commit is contained in:
parent
463b1978d0
commit
cdf1406aba
@ -120,6 +120,20 @@ function remove_raspap_directories() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Removes installed packages
|
||||||
|
function remove_installed_packages() {
|
||||||
|
install_log "Removing installed packages"
|
||||||
|
echo -n "Remove the following installed packages? lighttpd $php_package git hostapd dnsmasq vnstat [y/N]: "
|
||||||
|
read answer
|
||||||
|
if [ "$answer" != 'n' ] && [ "$answer" != 'N' ]; then
|
||||||
|
echo "Removing packages."
|
||||||
|
sudo apt-get remove lighttpd $php_package git hostapd dnsmasq vnstat
|
||||||
|
sudo apt-get autoremove
|
||||||
|
else
|
||||||
|
echo "Leaving packages installed."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Removes www-data from sudoers
|
# Removes www-data from sudoers
|
||||||
function clean_sudoers() {
|
function clean_sudoers() {
|
||||||
# should this check for only our commands?
|
# should this check for only our commands?
|
||||||
@ -130,6 +144,7 @@ function remove_raspap() {
|
|||||||
config_uninstallation
|
config_uninstallation
|
||||||
check_for_backups
|
check_for_backups
|
||||||
remove_raspap_directories
|
remove_raspap_directories
|
||||||
|
remove_installed_packages
|
||||||
clean_sudoers
|
clean_sudoers
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user