Closed greenshrike closed 3 years ago
Please review the linked PR.
Regex works for me on 11.4 and 12.2.
\s new in grep for FreeBSD 13 or something? I don't have one of those boxes handy to test.
Cheers.
I think \s
was me forgetting that grep -E
is only extended regex, not pcre, which I'm much more familiar with.
The provision script checks the Dovecot config to see if it is still using the vpopmail driver and, if so, converts the Dovecot config over to the SQL backend instead.
This is checked with the code:
However, the grep doesn't work on FreeBSD 12.2 or FreeBSD 11 with the system grep command, resulting in the vpopmail->SQL conversion never getting done.
Using \s for whitespace doesn't seem to be supported by FreeBSD's system grep in at least some versions of FreeBSD.
Changing the regex to:
got the script to actually do the conversion. However,
driver.*vpopmail
ordriver.*=.*vpopmail
is probably less fragile.