From: Remi Gacogne Date: Tue, 23 Apr 2024 08:50:19 +0000 (+0200) Subject: dnsdist: Fix home directory location comment in the EL spec X-Git-Tag: rec-5.1.0-alpha1~35^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b41778ab91f4851381f8858c6d760ea25e99cf1f;p=thirdparty%2Fpdns.git dnsdist: Fix home directory location comment in the EL spec --- diff --git a/builder-support/specs/dnsdist.spec b/builder-support/specs/dnsdist.spec index 2e470f352d..7f8747a189 100644 --- a/builder-support/specs/dnsdist.spec +++ b/builder-support/specs/dnsdist.spec @@ -134,7 +134,7 @@ getent group dnsdist >/dev/null || groupadd -r dnsdist getent passwd dnsdist >/dev/null || \ useradd -r -g dnsdist -d /var/lib/dnsdist -s /sbin/nologin \ -c "dnsdist user" dnsdist -# Change home directory to /var/lib/pdns +# Change home directory to /var/lib/dnsdist if needed if [[ $(getent passwd dnsdist | cut -d: -f6) == "/" ]]; then usermod -d /var/lib/dnsdist dnsdist fi