init
This commit is contained in:
23
anope-services.install
Normal file
23
anope-services.install
Normal file
@@ -0,0 +1,23 @@
|
||||
post_install() {
|
||||
if ! getent group anope &>/dev/null; then
|
||||
groupadd -r anope
|
||||
fi
|
||||
|
||||
if ! getent passwd anope &>/dev/null; then
|
||||
useradd -r -g anope -d /var/lib/anope -s /bin/false -c anope anope
|
||||
fi
|
||||
|
||||
echo "Example config is in /etc/anope/example.conf."
|
||||
echo "Copy it to /etc/anope/services.conf and modify it."
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
if getent passwd anope &>/dev/null; then
|
||||
userdel anope
|
||||
fi
|
||||
|
||||
if getent group anope &>/dev/null; then
|
||||
groupdel anope
|
||||
fi
|
||||
}
|
||||
|
Reference in New Issue
Block a user