diff options
author | Bart De Vries | 2019-02-05 10:33:30 +0100 |
---|---|---|
committer | Bart De Vries | 2019-02-05 10:33:30 +0100 |
commit | 65d77d8de3488274cd0cd3624974075d5d0339c1 (patch) | |
tree | c4072b86fa35cff8acd015842899047656ef4235 /snapcast.install | |
parent | b39cf3afbc5965977db3f373d7791c9fd0b20c7c (diff) | |
download | aur-65d77d8de3488274cd0cd3624974075d5d0339c1.tar.gz |
Switched to sysusers and tmpfiles.
Diffstat (limited to 'snapcast.install')
-rw-r--r-- | snapcast.install | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/snapcast.install b/snapcast.install deleted file mode 100644 index 5911354ad7ca..000000000000 --- a/snapcast.install +++ /dev/null @@ -1,31 +0,0 @@ -post_install() { - echo "Creating snapclient and snapserver users and groups." - if ! getent passwd snapclient &>/dev/null; then - useradd --gid audio --system --home-dir /var/lib/snapclient snapclient -s /bin/false - passwd -l snapclient &>/dev/null - fi - if ! getent passwd snapserver &>/dev/null; then - useradd --user-group --system --home-dir /var/lib/snapserver snapserver -s /bin/false - passwd -l snapserver &>/dev/null - fi -} - -post_upgrade() { - echo "Creating snapclient and snapserver users and groups." - if ! getent passwd snapclient &>/dev/null; then - useradd --gid audio --system --home-dir /var/lib/snapclient snapclient -s /bin/false - passwd -l snapclient &>/dev/null - fi - if ! getent passwd snapserver &>/dev/null; then - useradd --user-group --system --home-dir /var/lib/snapserver snapserver -s /bin/false - passwd -l snapserver &>/dev/null - fi -} - -post_remove() { - echo "Removing snapclient and snapserver users and groups." - userdel --force snapclient > /dev/null || true - userdel --force snapserver > /dev/null || true - # group is automatically removed by userdel command, so not needed - #groupdel snapserver > /dev/null || true -} |