whoogle-search/root/etc/cont-init.d/30-config
Mohammed A.Q c2acfe0479
Update 30-config
Not Needed
2020-05-11 08:42:52 +03:00

19 lines
268 B
Plaintext

#!/usr/bin/with-contenv bash
# Env variable validation
VARS=( \
TZ
WEB_PORT
)
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