Update uninstall script

This commit is contained in:
Félix Aime 2021-02-11 20:09:03 +01:00
parent 10f5d28337
commit 4ecf5d169e

View File

@ -7,10 +7,10 @@ delete_folder(){
delete_services(){ delete_services(){
echo "[+] Deleting TinyCheck services" echo "[+] Deleting TinyCheck services"
systemctl disable tinycheck-frontend systemctl disable tinycheck-frontend &> /dev/null
systemctl disable tinycheck-backend systemctl disable tinycheck-backend &> /dev/null
systemctl disable tinycheck-kiosk systemctl disable tinycheck-kiosk &> /dev/null
systemctl disable tinycheck-watchers systemctl disable tinycheck-watchers &> /dev/null
rm /lib/systemd/system/tinycheck-frontend.service rm /lib/systemd/system/tinycheck-frontend.service
rm /lib/systemd/system/tinycheck-backend.service rm /lib/systemd/system/tinycheck-backend.service
@ -39,7 +39,7 @@ delete_packages(){
"sqlite3" "sqlite3"
"nodejs") "nodejs")
echo -n "[?] Do you want to remove the installed packages? [Y/n] " echo -n "[?] Do you want to remove the installed packages? (Yes/no) "
read answer read answer
if [[ "$answer" =~ ^([yY][eE][sS]|[yY])$ ]] if [[ "$answer" =~ ^([yY][eE][sS]|[yY])$ ]]
then then