summarylogtreecommitdiffstats
path: root/sonarr.install
blob: ae55c94effe3e42b7b2c36011c852654b7056a44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_install() {
	systemd-sysusers sonarr.conf

	chown -R sonarr: /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 /var/lib/nzbdrone/* /var/lib/sonarr
		fi
	fi
}

post_upgrade() {
	post_install $1
}