Update 30-config
- Remove variable validation. (not needed at the moment) - Create and Apply User permissions to Config folder
This commit is contained in:
parent
958b16eccf
commit
de71078433
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user