feat: improved docker image volumes and permissions (#5160)
This commit is contained in:
12
docker/s6/custom-cont-init.d/20-config
Executable file
12
docker/s6/custom-cont-init.d/20-config
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# Ensure configuration exists
|
||||
if [ ! -f "/config/settings.json" ]; then
|
||||
cp -a /defaults/settings.json /config/settings.json
|
||||
fi
|
||||
|
||||
# permissions
|
||||
chown abc:abc \
|
||||
/config/settings.json \
|
||||
/database \
|
||||
/srv
|
||||
Reference in New Issue
Block a user