mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-26 19:21:39 +00:00
13 lines
389 B
Text
13 lines
389 B
Text
#!/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
|