Add LOCAL_BACKEND variable and update install_additionals logic
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
gyurix
2025-03-12 12:29:19 +01:00
parent 4088fe252e
commit c8ff4ba371

View File

@@ -12,6 +12,7 @@ ORGANIZATION=${ORGANIZATION:-safebox}
SMARTHOST_PROXY=$(toUpperCase $SMARTHOST_PROXY)
LOCAL_PROXY=$(toUpperCase $LOCAL_PROXY)
LOCAL_BACKEND=$(toUpperCase $LOCAL_BACKEND)
VPN_PROXY=$(toUpperCase $VPN_PROXY)
CRON=$(toUpperCase $CRON)
WIREGUARD=$(toUpperCase $WIREGUARD)
@@ -100,7 +101,9 @@ install_additionals() {
install_core_dns
if [[ "$SMARTHOST_PROXY" == "YES" || "$SMART_HOST_PROXY" == "TRUE" ]]; then
install_local_backend
if [[ "$LOCAL_PROXY" == "YES" || "$LOCAL_PROXY" == "TRUE" ]] && [[ "$LOCAL_BACKEND" == "YES" || "$LOCAL_BACKEND" == "TRUE" ]] ; then
install_local_backend
fi
fi
if [[ "$LOCAL_PROXY" == "YES" || "$LOCAL_PROXY" == "TRUE" ]]; then