summaryrefslogtreecommitdiff
path: root/community/unrealircd/unrealircd.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/unrealircd/unrealircd.install')
-rw-r--r--community/unrealircd/unrealircd.install8
1 files changed, 5 insertions, 3 deletions
diff --git a/community/unrealircd/unrealircd.install b/community/unrealircd/unrealircd.install
index 274d8b13f..0eca0c2a8 100644
--- a/community/unrealircd/unrealircd.install
+++ b/community/unrealircd/unrealircd.install
@@ -1,7 +1,9 @@
post_install() {
- echo "Create ircd user and chown /etc/unrealircd and /var/log/unrealircd recursively"
+ getent passwd ircd >/dev/null || useradd -r ircd
+ chown -R ircd etc/unrealircd var/log/unrealircd
+ systemd-tmpfiles --create unrealircd.conf
echo "SSL is enabled by default, so you need to create pem files"
- echo "Also unrealircd.conf needs adjustments"
+ echo "unrealircd.conf needs adjustments"
echo "See also: https://wiki.archlinux.org/index.php/UnrealIRCd"
}
@@ -10,5 +12,5 @@ post_upgrade() {
}
post_remove() {
- echo "Don't forget to remove ircd user"
+ userdel ircd
}