mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
- unbound does not use unbound' group anymore, but
daemmon' instead
PR: ports/137175 (based on) Reported by: Artis Caune <Artis.Caune at gmail.com>
This commit is contained in:
parent
26e6464db9
commit
e5e208d6d1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=239742
2
UIDs
2
UIDs
@ -5,7 +5,7 @@ bind:*:53:53::0:0:Bind Sandbox:/:/usr/sbin/nologin
|
||||
majordom:*:54:54::0:0:Majordomo Pseudo User:/usr/local/majordomo:/nonexistent
|
||||
rdfdb:*:55:55::0:0:rdfDB Daemon:/var/db/rdfdb:/bin/sh
|
||||
spamd:*:58:58::0:0:SpamAssassin user:/var/spool/spamd:/usr/sbin/nologin
|
||||
unbound:*:59:59::0:0:unbound dns resolver:/nonexistent:/usr/sbin/nologin
|
||||
unbound:*:59:1::0:0:unbound dns resolver:/nonexistent:/usr/sbin/nologin
|
||||
cyrus:*:60:60::0:0:the cyrus mail server:/nonexistent:/nonexistent
|
||||
gnats:*:61:1::0:0:GNATS database owner:/usr/local/share/gnats/gnats-db:/bin/sh
|
||||
proxy:*:62:62::0:0:Packet Filter pseudo-user:/nonexistent:/nonexistent
|
||||
|
@ -8,10 +8,10 @@ POST-DEINSTALL)
|
||||
echo "===> post-deinstallation information for $1:"
|
||||
echo ""
|
||||
echo " Note:"
|
||||
echo " Unbound related user accounts and groups were not removed."
|
||||
echo " Unbound related user account were not removed."
|
||||
echo ""
|
||||
echo " To remove the 'unbound' user and the 'unbound' group which were"
|
||||
echo " created by a default installation of this package, run"
|
||||
echo " To remove the 'unbound' user which were created by"
|
||||
echo " a default installation of this package, run"
|
||||
echo ""
|
||||
echo " pw userdel -n unbound"
|
||||
;;
|
||||
|
@ -5,26 +5,12 @@
|
||||
|
||||
PW=/usr/sbin/pw
|
||||
UID=59
|
||||
GID=$UID
|
||||
USER="unbound"
|
||||
GROUP="unbound"
|
||||
PREFIX="%%PREFIX%%"
|
||||
|
||||
case $2 in
|
||||
|
||||
PRE-INSTALL)
|
||||
|
||||
if ${PW} group show "${GROUP}" 2>/dev/null; then
|
||||
echo "You already have a group \"${GROUP}\", so I will use it."
|
||||
else
|
||||
if ${PW} groupadd ${GROUP} -g ${GID}; then
|
||||
echo "Added group \"${GROUP}\"."
|
||||
else
|
||||
echo "Adding group \"${GROUP}\" failed..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if ${PW} user show "${USER}" 2>/dev/null; then
|
||||
echo "You already have a user \"${USER}\", so I will use it."
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user