summarylogtreecommitdiffstats
path: root/centrifugo.install
blob: ce7cb8b47441b28a6c1a00efebbdc1dc2ead6963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
post_install() {
  systemd-sysusers centrifugo.conf

  if [ ! -d /var/lib/centrifugo ]; then
    mkdir -p /var/lib/centrifugo
    chown -R -L centrifugo:centrifugo /var/lib/centrifugo
  fi
}

post_remove() {
  userdel centrifugo
}