summarylogtreecommitdiffstats
path: root/install
blob: fa99dfcc51beaa8c9716a6c7828da3450c1d19a2 (plain)
1
2
3
4
5
6
7
post_install() {
  getent group sopel &>/dev/null || groupadd -r sopel >/dev/null
  getent passwd sopel &>/dev/null || useradd -r -g sopel -d /var/lib/sopel -s /bin/false sopel >/dev/null
  usr/bin/systemd-tmpfiles --create sopel.conf || true
  chown sopel:sopel /var/log/sopel
  chown sopel:sopel /var/lib/sopel
}