diff options
Diffstat (limited to 'pcr/rfc5766-turn-server/turnserver.install')
-rw-r--r-- | pcr/rfc5766-turn-server/turnserver.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pcr/rfc5766-turn-server/turnserver.install b/pcr/rfc5766-turn-server/turnserver.install new file mode 100644 index 000000000..84f31ca7f --- /dev/null +++ b/pcr/rfc5766-turn-server/turnserver.install @@ -0,0 +1,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 +} |