ircd-ratbox/ircd-ratbox.install
fbt d7847658e8
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m22s
v++, also actions
Signed-off-by: fbt <fbt@fleshless.org>
2023-10-25 22:53:49 +00:00

34 lines
845 B
Plaintext

post_upgrade() {
systemd-tmpfiles --create ircd-ratbox.conf
cat << EOF
Before starting the ircd, reload system modules by running:
systemctl daemon-reload
If you haven't previously done so, copy /etc/ircd-ratbox/example.conf
to /etc/ircd-ratbox/ircd.conf and configure it to your needs carefully.
Once things are configured, you can start the ircd by running:
systemctl start ircd-ratbox
You can also have the ircd start automatically at boot by running:
systemctl enable ircd-ratbox
EOF
}
post_install() {
[[ ! `grep ircd /etc/passwd` ]] && useradd -r -U -s /bin/false -d / ircd && echo "Created 'ircd' user and group"
chown -R ircd.ircd /etc/ircd-ratbox
post_upgrade
}
post_remove() {
[[ `grep ircd /etc/passwd` ]] && userdel ircd && echo "Removed 'ircd' user and group"
return 0
}