mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-27 11:41:36 +00:00
move s6-overlay files to /build/docker/
This commit is contained in:
parent
c56a3b8fdf
commit
f59c88e279
3 changed files with 1 additions and 1 deletions
13
build/docker/root/etc/cont-init.d/30-config
Normal file
13
build/docker/root/etc/cont-init.d/30-config
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue