initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
post_install() {
# create group
if ! getent group ircd &>/dev/null; then
groupadd -r ircd >/dev/null
fi
# create user
if ! getent passwd ircd &>/dev/null; then
useradd -r ircd -d /var/empty -g ircd -s /bin/nologin >/dev/null
fi
# show message
echo "SSL is enabled by default, so you need to create pem files"
echo "unrealircd.conf needs adjustments"
echo "See also: https://www.unrealircd.org/docs/Main_Page"
}
post_upgrade() {
post_install
}
post_remove() {
if getent passwd ircd &>/dev/null; then
userdel ircd >/dev/null
fi
if getent group ircd &>/dev/null; then
groupdel ircd >/dev/null
fi
}