#!/usr/bin/with-contenv bash

# cleanup pid if it exists
[[ -e /config/sonarr.pid ]] && \
	rm -rf /config/sonarr.pid

# permissions
chown -R abc:abc \
	/usr/lib/sonarr \
	/config
