diff options
Diffstat (limited to 'community/ultimate-ircd/ircd.install')
-rw-r--r-- | community/ultimate-ircd/ircd.install | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/community/ultimate-ircd/ircd.install b/community/ultimate-ircd/ircd.install new file mode 100644 index 000000000..19b76da80 --- /dev/null +++ b/community/ultimate-ircd/ircd.install @@ -0,0 +1,31 @@ +pre_install() { + /bin/true +} + +post_install() { + groupadd irc + useradd -G irc -d /var/lib/ircd ircd + chown -R ircd.irc /var/log/ircd + chown -R ircd.irc /var/lib/ircd + chown -R ircd.irc /var/run/ircd +} + +pre_upgrade() { + /bin/true +} + +post_upgrade() { + chown -R ircd.irc /var/log/ircd + chown -R ircd.irc /var/lib/ircd + chown -R ircd.irc /var/run/ircd +} + +pre_remove() { + /bin/true +} + +post_remove() { + userdel ircd + groupdel irc +} + |