Skip to content

Commit

Permalink
fix: update mode checks in postinstall script for bunkerweb, schedule…
Browse files Browse the repository at this point in the history
…r, and UI
  • Loading branch information
TheophileDiot committed Nov 29, 2024
1 parent f778553 commit 19de0e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/linux/scripts/postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ fi
# Create bunkerweb if needed
if {
{
[ -z "$MASTER_MODE" ] && [ -z "$SLAVE_MODE" ];
[ -z "$MANAGER_MODE" ] && [ -z "$WORKER_MODE" ];
} || {
[ "${MASTER_MODE:-yes}" = "no" ] || [ "${SLAVE_MODE:-no}" != "no" ];
[ "${MANAGER_MODE:-yes}" = "no" ] || [ "${WORKER_MODE:-no}" != "no" ];
};
} && [ "$SERVICE_BUNKERWEB" != "no" ]; then
if [ -f /var/tmp/bunkerweb_upgrade ]; then
Expand Down Expand Up @@ -116,7 +116,7 @@ fi

# Create scheduler if necessary
if {
[ "${MASTER_MODE:-yes}" != "no" ] || [ "${SLAVE_MODE:-no}" = "no" ];
[ "${MANAGER_MODE:-yes}" != "no" ] || [ "${WORKER_MODE:-no}" = "no" ];
} && [ "$SERVICE_SCHEDULER" != "no" ]; then
if [ -f /var/tmp/bunkerweb_upgrade ]; then
# Reload the bunkerweb-scheduler service if running
Expand All @@ -138,7 +138,7 @@ fi

# Create web UI if necessary
if {
[ "${MASTER_MODE:-yes}" != "no" ] || [ "${SLAVE_MODE:-no}" = "no" ];
[ "${MANAGER_MODE:-yes}" != "no" ] || [ "${WORKER_MODE:-no}" = "no" ];
} && [ "$SERVICE_UI" != "no" ]; then
if [ -f /var/tmp/bunkerweb_upgrade ]; then
# Reload the bunkerweb-ui service if running
Expand Down

0 comments on commit 19de0e1

Please sign in to comment.