post_install() { getent group inspircd &>/dev/null || groupadd -r -g 141 inspircd >/dev/null getent passwd inspircd &>/dev/null || useradd -r -u 141 -g inspircd -d /var/lib/inspircd -s /bin/false -c inspircd inspircd >/dev/null echo '==> You will need to create a config file for inspircd' echo '==> cp /etc/inspircd/inspircd.conf.example /etc/inspircd/inspircd.conf' echo '==> You will need to change the pidfile. To do this you can insert the following into your config.' echo '==> ' echo '==> Remember to use absolute paths in your config directory and not relative paths like you would do with a user-based inspircd install.' } post_remove() { getent passwd inspircd &>/dev/null && userdel inspircd >/dev/null getent group inspircd &>/dev/null && groupdel inspircd >/dev/null }