Files
docker-sonarr/root/etc/cont-init.d/30-config
T
2022-02-21 22:11:12 +00:00

17 lines
381 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
# cleanup pid if it exists
[[ -e /config/sonarr.pid ]] && \
rm -rf /config/sonarr.pid
# update certs for mono
if [[ ! -f "/app/sonarr/donecerts" ]]; then
echo "*** Running mono cert sync ***"
cert-sync --quiet /etc/ssl/certs/ca-certificates.crt
touch "/app/sonarr/donecerts"
fi
# permissions
chown -R abc:abc \
/app/sonarr/bin