summarylogtreecommitdiffstats
path: root/turnserver.install
diff options
context:
space:
mode:
authorMartin2015-10-20 14:53:07 +0200
committerMartin2015-10-20 14:53:07 +0200
commit22c669737bcb6f134352b764b8a4da56fa2e156a (patch)
tree7e9308268152837574aa5a285c5f5ac12ae1a83a /turnserver.install
downloadaur-22c669737bcb6f134352b764b8a4da56fa2e156a.tar.gz
initial commit
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
+}