diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/ultimate-ircd/ircd.install |
Tue Apr 5 14:26:38 UTC 2011
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 +} + |