Update 30-config

- Remove variable validation. (not needed at the moment) 
- Create and Apply User permissions to Config folder
This commit is contained in:
Mohammed A.Q 2020-05-19 03:45:26 +00:00 committed by GitHub
parent 958b16eccf
commit de71078433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,17 +1,11 @@
#!/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
# make needed folder
mkdir -p \
/config/
# permissions
chown -R abc:abc \
/app
chown -R abc:abc \
/config