diff options
author | Daniel Egeberg | 2016-03-14 12:16:03 +0100 |
---|---|---|
committer | Daniel Egeberg | 2016-03-14 12:16:03 +0100 |
commit | b04f7873a61f04979017db592585ac97dad08ca8 (patch) | |
tree | 47ddd181dbacd7c15741b8e4beed02ee266e7114 /sonarr.install | |
parent | 0a182a4f8cff4da97f31c154d179d2473153d5df (diff) | |
download | aur-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.install | 2 |
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() { |