update docker image

This commit is contained in:
Jasper 2022-12-19 20:51:51 -08:00
parent 3e15e09c07
commit c56a3b8fdf
3 changed files with 99 additions and 19 deletions

View file

@ -0,0 +1,13 @@
#!/usr/bin/with-contenv bash
# make config & metadata folder
mkdir -p \
/config/ \
/metadata/
# chown config & metadata directories if currently not set to abc
if [[ -d /config ]] && [[ "$(stat -c '%U' /config)" != "abc" ]]; then
chown -R abc:abc /config/
elif [[ -d /metadata ]] && [[ "$(stat -c '%U' /metadata)" != "abc" ]]; then
chown -R abc:abc /metadata/
fi