diff options
author | Justin Dray | 2016-06-05 11:30:57 +1000 |
---|---|---|
committer | Justin Dray | 2016-06-05 11:35:05 +1000 |
commit | 6c6846c04e6ef6d926f3bd0c29c84849c201d2c7 (patch) | |
tree | f036f40fc903c53b0ce4a909a2e5ea263cc294c7 /sonarr.install | |
parent | 6eb52e09b06d51a00759a5668c233c07950b0820 (diff) | |
download | aur-6c6846c04e6ef6d926f3bd0c29c84849c201d2c7.tar.gz |
Update to: 2.0.0.4163-1 - Change to using systemd-sysuers
Diffstat (limited to 'sonarr.install')
-rw-r--r-- | sonarr.install | 11 |
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 ]] |