From: Remi Gacogne Date: Tue, 23 Apr 2024 08:50:50 +0000 (+0200) Subject: rec: Fix home directory location comment in the EL spec X-Git-Tag: rec-5.1.0-alpha1~35^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14083%2Fhead;p=thirdparty%2Fpdns.git rec: Fix home directory location comment in the EL spec --- 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