diff options
author | Christian Breunig <christian@breunig.cc> | 2023-12-31 07:28:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-31 07:28:57 +0100 |
commit | 2286b8600da6c631b17e1d5b9b341843e50f9abf (patch) | |
tree | e2032793be5a755c0e2c1c1317948ff6d244f30a /debian/vyos-1x.postinst | |
parent | 14dc8a8962f0a52107913423a750f36ed8e45160 (diff) | |
parent | 3192095a197ae8d74690ab5c676e6a5fabae7fae (diff) | |
download | vyos-1x-2286b8600da6c631b17e1d5b9b341843e50f9abf.tar.gz vyos-1x-2286b8600da6c631b17e1d5b9b341843e50f9abf.zip |
Merge pull request #2696 from indrajitr/kea-lfc-fix
dhcp: T3316: Adjust kea lease files' location and permissions
Diffstat (limited to 'debian/vyos-1x.postinst')
-rw-r--r-- | debian/vyos-1x.postinst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst index f7ebec8bc..74fd229b4 100644 --- a/debian/vyos-1x.postinst +++ b/debian/vyos-1x.postinst @@ -109,10 +109,10 @@ if ! grep -q '^hostsd' /etc/group; then addgroup --quiet --system hostsd fi -# add dhcpd user for dhcp-server -if ! grep -q '^dhcpd' /etc/passwd; then - adduser --quiet --system --disabled-login --no-create-home --home /run/dhcp-server dhcpd - adduser --quiet dhcpd hostsd +# Add _kea user for kea-dhcp{4,6}-server to vyattacfg +# The user should exist via kea-common installed as transitive dependency +if grep -q '^_kea' /etc/passwd; then + adduser --quiet _kea vyattacfg fi # ensure the proxy user has a proper shell |