summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-11-10 11:35:01 +0100
committerDaniel Baumann <daniel@debian.org>2024-11-10 17:04:33 +0100
commit6c3bcbdf03fe4066e8dd882d326a7d3aed49a0f4 (patch)
tree41c4dd24eb8a1bde04c7b78724763d0c53ec5948
parentUpdating TODO file. (diff)
downloadfrr-6c3bcbdf03fe4066e8dd882d326a7d3aed49a0f4.tar.xz
frr-6c3bcbdf03fe4066e8dd882d326a7d3aed49a0f4.zip
Replacing adduser with tools from util-linux.
Signed-off-by: Daniel Baumann <daniel@debian.org>
-rw-r--r--debian/control2
-rwxr-xr-xdebian/frr.postinst12
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