summarylogtreecommitdiffstats
path: root/sonarr.install
diff options
context:
space:
mode:
Diffstat (limited to 'sonarr.install')
-rw-r--r--sonarr.install19
1 files changed, 7 insertions, 12 deletions
diff --git a/sonarr.install b/sonarr.install
index ae55c94effe3..c0026f8d950b 100644
--- a/sonarr.install
+++ b/sonarr.install
@@ -1,18 +1,13 @@
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
+ if [[ ! -f /var/lib/sonarr/config.xml ]]; then
+ if [[ -f /var/lib/nzbdrone/config.xml ]]; then
+ echo "Previous installation of nzbdrone detected, copying to sonarr."
+ cp /var/lib/nzbdrone/* /var/lib/sonarr
+ fi
+ fi
}
post_upgrade() {
- post_install $1
+ post_install $1
}