mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Refactor conditional logic in postinstall.sh for improved clarity and consistency
This commit is contained in:
parent
4a94680615
commit
79b53ec15d
1 changed files with 5 additions and 3 deletions
|
|
@ -83,7 +83,9 @@ if {
|
|||
{
|
||||
[ -z "$MANAGER_MODE" ] && [ -z "$WORKER_MODE" ];
|
||||
} || {
|
||||
[ "${MANAGER_MODE:-yes}" = "no" ] || [ "${WORKER_MODE:-no}" != "no" ];
|
||||
{
|
||||
[ -z "$MANAGER_MODE" ] || [ "${MANAGER_MODE:-yes}" = "no" ]
|
||||
} && [ "${WORKER_MODE:-no}" != "no" ];
|
||||
};
|
||||
} && [ "$SERVICE_BUNKERWEB" != "no" ]; then
|
||||
if [ -f /var/tmp/bunkerweb_upgrade ]; then
|
||||
|
|
@ -114,7 +116,7 @@ if {
|
|||
{
|
||||
[ -z "$MANAGER_MODE" ] && [ -z "$WORKER_MODE" ];
|
||||
} || {
|
||||
[ "${MANAGER_MODE:-yes}" != "no" ] || [ "${WORKER_MODE:-no}" = "no" ];
|
||||
[ "${MANAGER_MODE:-yes}" != "no" ] && [ "${WORKER_MODE:-no}" = "no" ];
|
||||
};
|
||||
} && [ "$SERVICE_SCHEDULER" != "no" ]; then
|
||||
if [[ -f /var/tmp/bunkerweb_enable_scheduler || ! -f /var/tmp/bunkerweb_upgrade ]]; then
|
||||
|
|
@ -144,7 +146,7 @@ if {
|
|||
{
|
||||
[ -z "$MANAGER_MODE" ] && [ -z "$WORKER_MODE" ];
|
||||
} || {
|
||||
[ "${MANAGER_MODE:-yes}" != "no" ] || [ "${WORKER_MODE:-no}" = "no" ];
|
||||
[ "${MANAGER_MODE:-yes}" != "no" ] && [ "${WORKER_MODE:-no}" = "no" ];
|
||||
};
|
||||
} && [ "$SERVICE_UI" != "no" ]; then
|
||||
if [ -f /var/tmp/bunkerweb_upgrade ]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue