diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2018-01-22 06:41:28 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2018-01-22 06:41:28 +0100 |
commit | e3d2043bcaaff828b1cd7e4707110d2e2bd213ed (patch) | |
tree | 474078e4c558bca1e0f211feadc01bed4bd5ae05 /pcr/inspircd/inspircd.install | |
parent | f534a4d8943cd0065ef771032d3daca5b5833205 (diff) | |
download | abslibre-e3d2043bcaaff828b1cd7e4707110d2e2bd213ed.tar.gz abslibre-e3d2043bcaaff828b1cd7e4707110d2e2bd213ed.tar.bz2 abslibre-e3d2043bcaaff828b1cd7e4707110d2e2bd213ed.zip |
pcr/inspircd: updated to 2.0.24
Diffstat (limited to 'pcr/inspircd/inspircd.install')
-rw-r--r-- | pcr/inspircd/inspircd.install | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/pcr/inspircd/inspircd.install b/pcr/inspircd/inspircd.install index 2d1ce16f4..997f72dcd 100644 --- a/pcr/inspircd/inspircd.install +++ b/pcr/inspircd/inspircd.install @@ -1,15 +1,21 @@ -post_install() { +create_user() { 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 + getent passwd inspircd &>/dev/null || useradd -r -u 141 -g inspircd -d /var/lib/inspircd -s /bin/false inspircd >/dev/null +} +post_install() { + create_user echo '==> You will need to create a config file for inspircd' - echo '==> cp /etc/inspircd/inspircd.conf.example /etc/inspircd/inspircd.conf' + echo '==> cp /usr/share/inspircd/examples/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="/run/inspircd/inspircd.pid">' + echo '==> <pid file="/var/lib/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_upgrade() { + create_user +} + post_remove() { - getent passwd inspircd &>/dev/null && userdel inspircd >/dev/null - getent group inspircd &>/dev/null && groupdel inspircd >/dev/null + getent passwd inspircd &>/dev/null && userdel inspircd } |