1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-08-13 15:43:47 -04:00
arch-ppa/src/sonarr/sonarr.install
2017-07-01 12:45:39 -04:00

20 lines
467 B
Plaintext

post_install() {
systemd-sysusers sonarr.conf
mkdir -p /var/lib/sonarr
if [[ ! -f /var/lib/sonarr/config.xml ]]
then
if [[ -f /var/lib/nzbdrone/config.xml ]]
then
echo "A previous installation of nzbdrone has been detected. Copying previous configuration to Sonarr"
cp -r /var/lib/nzbdrone/* /var/lib/sonarr
fi
chown -R sonarr: /var/lib/sonarr
fi
}
post_upgrade() {
post_install $1
}