summarylogtreecommitdiffstats
path: root/turnserver.install
diff options
context:
space:
mode:
Diffstat (limited to 'turnserver.install')
-rw-r--r--turnserver.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/turnserver.install b/turnserver.install
new file mode 100644
index 000000000000..4d4aab1ad73b
--- /dev/null
+++ b/turnserver.install
@@ -0,0 +1,20 @@
+post_install() {
+
+ id turnserver &>/dev/null || \
+ useradd -r -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
+
+ echo "start server by issuing \"systemctl start turnserver.service\" or calling \"turnserver\""
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ userdel turnserver
+}