summarylogtreecommitdiffstats
path: root/sonarr.install
diff options
context:
space:
mode:
authorJustin Dray2016-06-05 11:30:57 +1000
committerJustin Dray2016-06-05 11:35:05 +1000
commit6c6846c04e6ef6d926f3bd0c29c84849c201d2c7 (patch)
treef036f40fc903c53b0ce4a909a2e5ea263cc294c7 /sonarr.install
parent6eb52e09b06d51a00759a5668c233c07950b0820 (diff)
downloadaur-6c6846c04e6ef6d926f3bd0c29c84849c201d2c7.tar.gz
Update to: 2.0.0.4163-1 - Change to using systemd-sysuers
Diffstat (limited to 'sonarr.install')
-rw-r--r--sonarr.install11
1 files changed, 1 insertions, 10 deletions
diff --git a/sonarr.install b/sonarr.install
index 1bbd6ea51675..ae55c94effe3 100644
--- a/sonarr.install
+++ b/sonarr.install
@@ -1,14 +1,5 @@
post_install() {
- if grep -q "^sonarr" /etc/group &> /dev/null ; then
- groupmod -n sonarr sonarr &> /dev/null
- else
- groupadd -r sonarr &> /dev/null
- fi
- if grep -q "^sonarr:" /etc/passwd 2> /dev/null ; then
- usermod -s /bin/false -c "Sonarr daemon" -d /var/lib/sonarr -g sonarr sonarr &> /dev/null
- else
- useradd -s /bin/false -c "Sonarr daemon user" -d /var/lib/sonarr -g sonarr -r sonarr &> /dev/null
- fi
+ systemd-sysusers sonarr.conf
chown -R sonarr: /var/lib/sonarr
if [[ ! -f /var/lib/sonarr/config.xml ]]