updated on Fri Jan 6 00:09:29 UTC 2012
[aur-mirror.git] / inspircd / inspircd.install
blobec97113f525d08b0ebe54d4b74d0217d4b15b66d
1 post_install() {
2   getent group inspircd &>/dev/null || groupadd -r -g 141 inspircd >/dev/null
3   getent passwd inspircd &>/dev/null || useradd -r -u 141 -g inspircd -d /var/lib/inspircd -s /bin/false -c inspircd inspircd >/dev/null
5   echo '==> You will need to create a config file for inspircd'
6   echo '==>   cp /etc/inspircd/inspircd.conf.example /etc/inspircd/inspircd.conf'
7   echo '==> You will need to change the pidfile. To do this you can insert the following into your config.'
8   echo '==>   <pid file="/var/run/inspircd/inspircd.pid">'
9   echo '==> Remember to use absolute paths in your config directory and not relative paths like you would do with a user-based inspircd install.'
12 post_remove() {
13   getent passwd inspircd &>/dev/null && userdel inspircd >/dev/null
14   getent group inspircd &>/dev/null && groupdel inspircd >/dev/null