summaryrefslogtreecommitdiff
path: root/community/ultimate-ircd/ircd.install
blob: 19b76da80b1cc57f03c0ff09b9905005d90b0a64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
}