diff options
author | Stefan Auditor | 2017-03-15 16:12:58 +0100 |
---|---|---|
committer | Stefan Auditor | 2017-03-15 18:20:58 +0100 |
commit | 55ec86e321d1b980d848b60a05c58e726bcb6ad4 (patch) | |
tree | 67356497ce1d6d44005f852461447b1045289c13 /traefik.install | |
parent | 19c188c2b69f2e32ff750c800097dc149cbc0e74 (diff) | |
download | aur-55ec86e321d1b980d848b60a05c58e726bcb6ad4.tar.gz |
Package review by Doug Newgard
- Put all files into sources array
- Fix up paths
- Move architecture independent files to general sources array
- Pull license file from release tag
- Copy license to the wright directory
- Remove user deletion from post_remove hook
Diffstat (limited to 'traefik.install')
-rw-r--r-- | traefik.install | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/traefik.install b/traefik.install index 367764358f5e..07c0968d3ff7 100644 --- a/traefik.install +++ b/traefik.install @@ -1,14 +1,12 @@ post_install() { - getent group traefik >/dev/null || groupadd -r traefik - getent passwd traefik >/dev/null || useradd -g traefik -r -M -s /bin/false traefik - chown traefik:traefik /var/log/traefik - setcap 'cap_net_bind_service=+ep' /bin/traefik + getent group traefik &> /dev/null || groupadd -r traefik &> /dev/null + getent passwd traefik &> /dev/null || useradd -s /sbin/nologin -c "Traefik user" -d /var/empty -g traefik -r traefik &> /dev/null + chmod u+s usr/bin/traefik &>/dev/null + chown traefik:traefik usr/bin/traefik &>/dev/null + chown traefik:traefik var/log/traefik &>/dev/null + setcap 'cap_net_bind_service=+ep' usr/bin/traefik &>/dev/null } post_upgrade() { post_install } - -post_remove() { - userdel traefik -} |