Add LOCAL_BACKEND variable and update install_additionals logic
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -12,6 +12,7 @@ ORGANIZATION=${ORGANIZATION:-safebox}
|
|||||||
|
|
||||||
SMARTHOST_PROXY=$(toUpperCase $SMARTHOST_PROXY)
|
SMARTHOST_PROXY=$(toUpperCase $SMARTHOST_PROXY)
|
||||||
LOCAL_PROXY=$(toUpperCase $LOCAL_PROXY)
|
LOCAL_PROXY=$(toUpperCase $LOCAL_PROXY)
|
||||||
|
LOCAL_BACKEND=$(toUpperCase $LOCAL_BACKEND)
|
||||||
VPN_PROXY=$(toUpperCase $VPN_PROXY)
|
VPN_PROXY=$(toUpperCase $VPN_PROXY)
|
||||||
CRON=$(toUpperCase $CRON)
|
CRON=$(toUpperCase $CRON)
|
||||||
WIREGUARD=$(toUpperCase $WIREGUARD)
|
WIREGUARD=$(toUpperCase $WIREGUARD)
|
||||||
@@ -100,8 +101,10 @@ install_additionals() {
|
|||||||
install_core_dns
|
install_core_dns
|
||||||
|
|
||||||
if [[ "$SMARTHOST_PROXY" == "YES" || "$SMART_HOST_PROXY" == "TRUE" ]]; then
|
if [[ "$SMARTHOST_PROXY" == "YES" || "$SMART_HOST_PROXY" == "TRUE" ]]; then
|
||||||
|
if [[ "$LOCAL_PROXY" == "YES" || "$LOCAL_PROXY" == "TRUE" ]] && [[ "$LOCAL_BACKEND" == "YES" || "$LOCAL_BACKEND" == "TRUE" ]] ; then
|
||||||
install_local_backend
|
install_local_backend
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$LOCAL_PROXY" == "YES" || "$LOCAL_PROXY" == "TRUE" ]]; then
|
if [[ "$LOCAL_PROXY" == "YES" || "$LOCAL_PROXY" == "TRUE" ]]; then
|
||||||
cp -av /tmp/$LOCAL_PROXY_REPO/*.json $SERVICE_DIR/
|
cp -av /tmp/$LOCAL_PROXY_REPO/*.json $SERVICE_DIR/
|
||||||
|
Reference in New Issue
Block a user