summaryrefslogtreecommitdiff
path: root/pcr/rfc5766-turn-server/turnserver.install
blob: 84f31ca7f2d57a7403bd16d8f5941d60a6843962 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install() {
  id turnserver &>/dev/null || \
    useradd -g daemon -M -s /usr/bin/false turnserver

  install -dm 755 "/var/log/turnserver"
  chown -R turnserver:daemon /var/log/turnserver

  systemd-tmpfiles --create turnserver.conf
}

post_upgrade() {
  post_install
}

pre_remove() {
  userdel turnserver
}