summarylogtreecommitdiffstats
path: root/hooktor.install
blob: 442ce398396a1954fd685a70bb3f75379e2630fe (plain)
1
2
3
4
5
6
7
8
9
10
post_install() {
  getent group hooktor > /dev/null || groupadd -r hooktor 1>/dev/null
  getent passwd hooktor > /dev/null || useradd -r -d /var/lib/hooktor -g hooktor -s /bin/false hooktor 1>/dev/null
  chown -R hooktor:hooktor /var/lib/hooktor
}

post_remove() {
  getent passwd hooktor > /dev/null && userdel hooktor 1>/dev/null
  getent group hooktor > /dev/null && groupdel hooktor 1>/dev/null
}