remove .site files (gen), uninstall remove folder at the end (linux) and run jobs when reloading local instances (UI)

This commit is contained in:
bunkerity
2021-08-18 12:07:11 +02:00
parent 2a0b84074a
commit 8a4eb3f2a3
3 changed files with 13 additions and 9 deletions

View File

@@ -47,12 +47,6 @@ fi
do_and_check_cmd mv /lib/systemd/system/nginx.service.bak /lib/systemd/system/nginx.service
do_and_check_cmd systemctl daemon-reload
# Remove /opt/bunkerized-nginx
if [ -e "/opt/bunkerized-nginx" ] ; then
echo "[*] Remove /opt/bunkerized-nginx"
do_and_check_cmd rm -rf /opt/bunkerized-nginx
fi
# Remove UI service
systemctl status bunkerized-nginx-ui > /dev/null 2>&1
if [ $? -eq 0 ] ; then
@@ -78,5 +72,11 @@ if [ -e "$CRON_PATH" ] ; then
do_and_check_cmd rm -f "$CRON_PATH"
fi
# Remove /opt/bunkerized-nginx
if [ -e "/opt/bunkerized-nginx" ] ; then
echo "[*] Remove /opt/bunkerized-nginx"
do_and_check_cmd rm -rf /opt/bunkerized-nginx
fi
# We're done
echo "[*] bunkerized-nginx successfully uninstalled"