summaryrefslogtreecommitdiff
path: root/community/ircservices/ircservices.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/ircservices/ircservices.install')
-rw-r--r--community/ircservices/ircservices.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/community/ircservices/ircservices.install b/community/ircservices/ircservices.install
new file mode 100644
index 000000000..a6d3fa1ab
--- /dev/null
+++ b/community/ircservices/ircservices.install
@@ -0,0 +1,15 @@
+post_install() {
+ groupadd irc
+ useradd -G irc ircd
+ chown -R ircd.irc /var/log/ircd
+ chown -R ircd.irc /var/lib/ircd
+}
+
+post_upgrade() {
+ chown -R ircd.irc /var/log/ircd
+ chown -R ircd.irc /var/lib/ircd
+}
+
+post_remove() {
+ echo "-- Don't forget to remove ircd user and irc group if you do not use it"
+}