summaryrefslogtreecommitdiff
path: root/pcr/rfc5766-turn-server/turnserver.install
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-02 18:33:13 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-02 18:33:13 -0500
commita233fb98104fc4e57b6c12fccef8f79f32157911 (patch)
tree0ce11eb507b04b645ea80c6c8764e6720a1a244f /pcr/rfc5766-turn-server/turnserver.install
parent885a50c4a42f0b530d4f756d34862c89f2987556 (diff)
downloadabslibre-a233fb98104fc4e57b6c12fccef8f79f32157911.tar.gz
abslibre-a233fb98104fc4e57b6c12fccef8f79f32157911.tar.bz2
abslibre-a233fb98104fc4e57b6c12fccef8f79f32157911.zip
update pcr/rfc5766-turn-server
Diffstat (limited to 'pcr/rfc5766-turn-server/turnserver.install')
-rw-r--r--pcr/rfc5766-turn-server/turnserver.install17
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
+}