From c831ec7f72898255374d63db0b869957890fe55a Mon Sep 17 00:00:00 2001 From: hael Date: Thu, 27 Apr 2023 11:25:30 +0000 Subject: [PATCH] dirname of wg0 --- deploy.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/deploy.sh b/deploy.sh index 0bb62c6..bb9e496 100755 --- a/deploy.sh +++ b/deploy.sh @@ -106,10 +106,9 @@ install_additionals() { if [[ "$VPN_PROXY" == "YES" || "$VPN_PROXY" == "TRUE" ]]; then cp -av /tmp/$VPN_PROXY_REPO/*.json $SERVICE_DIR/ - VPN_VOLUMES=$(jq -r .containers[].VOLUMES[].SOURCE $SERVICE_DIR/vpn-proxy.json |grep -v '\.') - for VOLUME in $(echo $VPN_VOLUMES); do - mkdir -p $VOLUME; - done + VPN_VOLUMES=$(jq -r .containers[0].VOLUMES[0].SOURCE $SERVICE_DIR/vpn-proxy.json |grep -v '\.') + VOLUME=$(dirname $VPN_VOLUMES); + mkdir -p $VOLUME; fi if [[ "$CRON" == "YES" || "$CRON" == "TRUE" ]]; then