prevent false positives in option detection in new_options.sh

This commit is contained in:
FreddleSpl0it 2026-03-09 15:19:46 +01:00
parent 82ea418423
commit 709117fe19
No known key found for this signature in database
GPG Key ID: 00E14E7634F4BEC5

View File

@ -64,7 +64,7 @@ adapt_new_options() {
sed -i --follow-symlinks '$a\' mailcow.conf
for option in ${CONFIG_ARRAY[@]}; do
if grep -q "^${option}=" mailcow.conf; then
if grep -q "^#\?${option}=" mailcow.conf; then
continue
fi