config: Correctly match valueless parameters. Fixes #693

This commit is contained in:
Bram
2025-01-06 12:09:10 +01:00
parent 16bc90a64f
commit ba82767cad

View File

@@ -136,7 +136,7 @@ for _jail in ${JAILS}; do
awk -F= -v line="${LINE}" -v property="${PROPERTY}" '
BEGIN {
# build RE as string as we can not expand vars in RE literals
prop_re = "^[[:space:]]*" property "[[:space:]]*$";
prop_re = "^[[:space:]]*" property "[[:space:]]*;?$";
}
$1 ~ prop_re && !found {
# we already have an entry in the config for this property so