From 6c3bcbdf03fe4066e8dd882d326a7d3aed49a0f4 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 10 Nov 2024 11:35:01 +0100 Subject: Replacing adduser with tools from util-linux. Signed-off-by: Daniel Baumann --- debian/control | 2 -- debian/frr.postinst | 12 ++++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/debian/control b/debian/control index b0f5e2d3..802bcecb 100644 --- a/debian/control +++ b/debian/control @@ -51,8 +51,6 @@ Depends: lsof, ${misc:Depends}, ${shlibs:Depends}, -Pre-Depends: - adduser, Recommends: frr-pythontools, Suggests: diff --git a/debian/frr.postinst b/debian/frr.postinst index 9c9b4a82..3d9a0d5c 100755 --- a/debian/frr.postinst +++ b/debian/frr.postinst @@ -5,13 +5,13 @@ set -e # of normal "configure" or error-handling "abort-upgrade", "abort-remove" or # "abort-deconfigure" -addgroup --system frrvty -addgroup --system frr -adduser \ +groupadd --system frrvty +groupadd --system frr +useradd \ --system \ - --ingroup frr \ - --home /nonexistent \ - --gecos "Frr routing suite" \ + -c "Frr routing suite" \ + -g frr \ + --home-dir /nonexistent \ --no-create-home \ frr usermod -a -G frrvty frr -- cgit v1.2.3