whoogle-search/root/etc/cont-init.d/30-config
Mohammed A.Q bde7003584
Update 30-config
Remove {WEB_PORT} from variable validation because it optional and not required.
2020-05-11 21:22:21 +03:00

18 lines
259 B
Plaintext

#!/usr/bin/with-contenv bash
# Env variable validation
VARS=( \
TZ
)
for i in "${VARS[@]}"; do
if [ -z ${!i+x} ]; then
echo "[cont-init.d] ${i} is required and is not set will not continue"
exit 0
fi
done
# permissions
chown -R abc:abc \
/app