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
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
# Env variable validation
|
# make needed folder
|
||||||
VARS=( \
|
mkdir -p \
|
||||||
TZ
|
/config/
|
||||||
)
|
|
||||||
|
|
||||||
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
|
# permissions
|
||||||
chown -R abc:abc \
|
chown -R abc:abc \
|
||||||
/app
|
/app
|
||||||
|
chown -R abc:abc \
|
||||||
|
/config
|
||||||
|
|
Loading…
Reference in New Issue
Block a user