summarylogtreecommitdiffstats
path: root/traefik.install
blob: 367764358f5e7a6fed0d20e2f4b788e658bbe9a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}

post_upgrade() {
  post_install
}

post_remove() {
  userdel traefik
}