IS_LXC_PHP_FPM_SERVICE_UMASK_SET: fix inverted test condition.

This commit is contained in:
William Hirigoyen 2023-03-01 09:44:48 +01:00
parent 1bb00c10bd
commit e21c4e8233
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp
### Fixed
* IS_LOCALHOST_IN_POSTFIX_MYDESTINATION: set grep quiet.
* IS_LXC_PHP_FPM_SERVICE_UMASK_SET: fix inverted test condition.
### Security

View File

@ -1235,7 +1235,7 @@ check_lxc_php_fpm_service_umask_set() {
service="${container:0:4}.${container:4}-fpm"
fi
umask=$(lxc-attach --name "${container}" -- systemctl show -p UMask "$service" | cut -d "=" -f2)
if ! [ "$umask" != "0007" ]; then
if [ "$umask" != "0007" ]; then
missing_umask="${missing_umask} ${container}"
fi
done