summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Egeberg2016-03-14 12:16:03 +0100
committerDaniel Egeberg2016-03-14 12:16:03 +0100
commitb04f7873a61f04979017db592585ac97dad08ca8 (patch)
tree47ddd181dbacd7c15741b8e4beed02ee266e7114
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.
-rw-r--r--PKGBUILD2
-rw-r--r--sonarr.install2
2 files changed, 2 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6e0cedfc7ad..c97e72a65ff 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: Justin Dray <justin@dray.be>
pkgname="sonarr"
pkgver="2.0.0.3953"
-pkgrel=1
+pkgrel=2
pkgdesc="PVR for newsgroup users. Formerly known as NZBDrone"
arch=(any)
url="http://www.sonarr.tv"
diff --git a/sonarr.install b/sonarr.install
index 7be5d4d73ee..fd82ca181e1 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() {