mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
fix: add logic to disable bunkerweb and related services during postinstall
This commit is contained in:
parent
b69cd8aeda
commit
cfb9434cb1
1 changed files with 16 additions and 0 deletions
|
|
@ -100,6 +100,10 @@ if [ "$SERVICE_BUNKERWEB" != "no" ] ; then
|
|||
do_and_check_cmd systemctl enable bunkerweb
|
||||
do_and_check_cmd systemctl start bunkerweb
|
||||
fi
|
||||
elif systemctl is-active --quiet bunkerweb; then
|
||||
echo "Disabling bunkerweb service..."
|
||||
do_and_check_cmd systemctl stop bunkerweb
|
||||
do_and_check_cmd systemctl disable bunkerweb
|
||||
fi
|
||||
|
||||
# Create scheduler if necessary
|
||||
|
|
@ -133,6 +137,18 @@ if [ "$SERVICE_SCHEDULER" != "no" ] ; then
|
|||
echo "Note: Make sure that your firewall settings allow access to this URL."
|
||||
echo ""
|
||||
fi
|
||||
else
|
||||
if systemctl is-active --quiet bunkerweb-scheduler; then
|
||||
echo "Disabling bunkerweb-scheduler service..."
|
||||
do_and_check_cmd systemctl stop bunkerweb-scheduler
|
||||
do_and_check_cmd systemctl disable bunkerweb-scheduler
|
||||
fi
|
||||
|
||||
if systemctl is-active --quiet bunkerweb-ui; then
|
||||
echo "Disabling bunkerweb-ui service..."
|
||||
do_and_check_cmd systemctl stop bunkerweb-ui
|
||||
do_and_check_cmd systemctl disable bunkerweb-ui
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f /var/tmp/bunkerweb_upgrade ]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue