summaryrefslogtreecommitdiff
path: root/pcr/inspircd/inspircd.install
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2013-02-18 17:31:52 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2013-02-18 17:31:52 -0500
commit0be78807ac1a050c88f847ef0e36f5cd4d9b5725 (patch)
treeba2266308391192112ed3a843f144a2d33d59d97 /pcr/inspircd/inspircd.install
parent4d8ea59baa9963ebbca29b35c9a7ceb914119376 (diff)
downloadabslibre-0be78807ac1a050c88f847ef0e36f5cd4d9b5725.tar.gz
abslibre-0be78807ac1a050c88f847ef0e36f5cd4d9b5725.tar.bz2
abslibre-0be78807ac1a050c88f847ef0e36f5cd4d9b5725.zip
Adding packages to pcr
Diffstat (limited to 'pcr/inspircd/inspircd.install')
-rw-r--r--pcr/inspircd/inspircd.install15
1 files changed, 15 insertions, 0 deletions
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 '==> <pid file="/var/run/inspircd/inspircd.pid">'
+ 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
+}