summarylogtreecommitdiffstats
path: root/tideways-daemon.install
blob: 3e94e84b5453df8446a5118ffcde624353f0575f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_install() {
    systemd-sysusers tideways-daemon.conf
    systemd-tmpfiles --create tideways-daemon.conf
}

post_upgrade() {
    post_install
}

post_remove() {
  if getent passwd tideways >/dev/null 2>&1; then
    userdel tideways
  fi

  if getent group tideways >/dev/null 2>&1; then
    groupdel tideways
  fi
}