Files
Apps-Community/apps/templates/nzbget/cont-init.d/30-config
LooseSeal2 e3c685e5b9 formatting
2019-07-17 01:00:02 -07:00

28 lines
486 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/with-contenv bash
# delete lock file if found
[[ -f /downloads/nzbget.lock ]] &&
rm /downloads/nzbget.lock
# check if config file exists in /config
[[ ! -f /config/nzbget.conf ]] &&
cp /defaults/nzbget.conf /config/nzbget.conf
# permissions
chown 1000:1000 \
/downloads
chown 1000:1000 -R \
/app/nzbget \
/config
chmod u+rw \
/config/nzbget.conf
chmod 777 -R \
/config
chmod 777 -R \
/app/nzbget
chmod 777 -R \
/downloads
exec /config/installer/installer.sh