From 0be78807ac1a050c88f847ef0e36f5cd4d9b5725 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Mon, 18 Feb 2013 17:31:52 -0500 Subject: Adding packages to pcr --- pcr/inspircd/inspircd.install | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pcr/inspircd/inspircd.install (limited to 'pcr/inspircd/inspircd.install') diff --git a/pcr/inspircd/inspircd.install b/pcr/inspircd/inspircd.install new file mode 100644 index 000000000..ec97113f5 --- /dev/null +++ b/pcr/inspircd/inspircd.install @@ -0,0 +1,15 @@ +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 +} -- cgit v1.2.3-54-g00ecf