blob: 72e579a29381b65c5b3a73ba9546193775a9c4ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
post_install() {
echo "Adding unprivileged system user and group..."
useradd -r rwhoisd -c "RWhois Daemon" -d /var/lib/rwhoisd -s /usr/bin/nologin
mkdir -p -m 750 /var/log/rwhoisd /var/lib/rwhoisd
chown rwhoisd.rwhoisd /var/log/rwhoisd /var/lib/rwhoisd
}
post_remove() {
echo "Removing unprivileged system user and group..."
userdel -r rwhoisd &>/dev/null
}
|