dirname of wg0

This commit is contained in:
2023-04-27 11:25:30 +00:00
parent cd231627a1
commit c831ec7f72

View File

@@ -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