1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-11-11 19:45:01 -05:00
arch-ppa/src/coturn/turnserver.install

21 lines
422 B
Plaintext
Raw Normal View History

2018-09-26 23:36:00 -04:00
post_install() {
id turnserver &>/dev/null || \
2019-03-03 20:21:14 -05:00
useradd -r -g daemon -d / -s /usr/bin/nologin turnserver
2018-09-26 23:36:00 -04:00
install -dm 755 "/var/log/turnserver"
chown -R turnserver:daemon /var/log/turnserver
systemd-tmpfiles --create turnserver.conf
2019-03-03 20:21:14 -05:00
2018-09-26 23:36:00 -04:00
echo "start server by issuing \"systemctl start turnserver.service\" or calling \"turnserver\""
}
post_upgrade() {
post_install
}
pre_remove() {
userdel turnserver
}