create vpn volume dirs

This commit is contained in:
2023-04-27 10:57:47 +00:00
parent acc9682483
commit e1ed36a12e

View File

@@ -105,6 +105,11 @@ install_additionals() {
if [[ "$VPN_PROXY" == "YES" || "$VPN_PROXY" == "TRUE" ]]; then if [[ "$VPN_PROXY" == "YES" || "$VPN_PROXY" == "TRUE" ]]; then
cp -av /tmp/$VPN_PROXY_REPO/*.json $SERVICE_DIR/ 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
fi fi
if [[ "$CRON" == "YES" || "$CRON" == "TRUE" ]]; then if [[ "$CRON" == "YES" || "$CRON" == "TRUE" ]]; then