mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 09:00:55 +00:00
debian: Add the creation of the quagga user to quaggavty group
The creation of the quagga user was not the only place to add the quagga user to the quaggavty group. If we are reinstalling quagga over a old version of code then we need to check to see if the quagga user is in the quaggavty and do the right thing. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Dave Olson <olson@cumulusnetworks.com>
This commit is contained in:
parent
58255d3440
commit
fd8155c046
9
debian/quagga.preinst
vendored
9
debian/quagga.preinst
vendored
@ -24,7 +24,14 @@ if ! getent passwd quagga >/dev/null; then
|
||||
--gecos "Quagga routing suite" \
|
||||
--shell /bin/false \
|
||||
quagga >/dev/null
|
||||
usermod -a -G quaggavty quagga >/dev/null
|
||||
fi
|
||||
|
||||
# We may be installing over an older version of
|
||||
# quagga and as such we need to intelligently
|
||||
# check to see if the quagga user is in the quaggavty
|
||||
# group.
|
||||
if ! /usr/bin/id quagga | grep &>/dev/null 'quaggavty'; then
|
||||
usermod -a -G quaggavty quagga >/dev/null
|
||||
fi
|
||||
|
||||
# Do not change permissions when upgrading as it would violate policy.
|
||||
|
Loading…
Reference in New Issue
Block a user