fix permission-hardener config parsing issue

This commit is contained in:
Patrick Schleizer 2023-11-05 16:43:44 -05:00
parent e72f79236b
commit 4219347f0a
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -325,12 +325,12 @@ set_file_perms() {
continue continue
fi fi
if ! echo "${passwd_file_contents}" | grep --quiet --fixed-strings "${owner_from_config}:" ; then if ! grep --quiet --fixed-strings "${owner_from_config}:" /var/lib/permission-hardening/private/passwd ; then
echo "ERROR: owner_from_config '$owner_from_config' does not exist!" >&2 echo "ERROR: owner_from_config '$owner_from_config' does not exist!" >&2
continue continue
fi fi
if ! echo "${group_file_contents}" | grep --quiet --fixed-strings "${group_from_config}:" ; then if ! grep --quiet --fixed-strings "${group_from_config}:" /var/lib/permission-hardening/private/group ; then
echo "ERROR: group_from_config '$group_from_config' does not exist!" >&2 echo "ERROR: group_from_config '$group_from_config' does not exist!" >&2
continue continue
fi fi