summarylogtreecommitdiffstats
path: root/sonarr.install
diff options
context:
space:
mode:
authorDaniel Egeberg2016-03-14 12:16:03 +0100
committerDaniel Egeberg2016-03-14 12:16:03 +0100
commitb04f7873a61f04979017db592585ac97dad08ca8 (patch)
tree47ddd181dbacd7c15741b8e4beed02ee266e7114 /sonarr.install
parent0a182a4f8cff4da97f31c154d179d2473153d5df (diff)
downloadaur-b04f7873a61f04979017db592585ac97dad08ca8.tar.gz
Only update user:group ownership of /var/lib/sonarr if existing install was not found.
This will allow users to run sonarr as another user without the having the ownership overridden at each upgrade.
Diffstat (limited to 'sonarr.install')
-rw-r--r--sonarr.install2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonarr.install b/sonarr.install
index 7be5d4d73eea..fd82ca181e1e 100644
--- a/sonarr.install
+++ b/sonarr.install
@@ -18,8 +18,8 @@ post_install() {
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
- chown -R sonarr: /var/lib/sonarr
}
post_upgrade() {