From 5fab0e14a9f98a0c8170e094eec6b7e577184c8a Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 23 Apr 2024 10:50:50 +0200 Subject: [PATCH] rec: Fix home directory location comment in the EL spec --- builder-support/specs/pdns-recursor.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder-support/specs/pdns-recursor.spec b/builder-support/specs/pdns-recursor.spec index 227121ab26..cbb5c19426 100644 --- a/builder-support/specs/pdns-recursor.spec +++ b/builder-support/specs/pdns-recursor.spec @@ -106,7 +106,7 @@ getent group pdns-recursor > /dev/null || groupadd -r pdns-recursor getent passwd pdns-recursor > /dev/null || \ useradd -r -g pdns-recursor -d /var/lib/pdns-recursor -s /sbin/nologin \ -c "PowerDNS Recursor user" pdns-recursor -# Change home directory to /var/lib/pdns +# Change home directory to /var/lib/pdns-recursor if needed if [[ $(getent passwd pdns-recursor | cut -d: -f6) == "/" ]]; then usermod -d /var/lib/pdns-recursor pdns-recursor fi -- 2.47.2