Fix connMaxIdleTime after spaces were changed to tabs

This commit is contained in:
Arjan H
2023-04-29 19:17:56 +02:00
parent 0fde1be025
commit f59601fde9

View File

@@ -162,7 +162,7 @@ for fl in $(grep -Rl maxOpenConns config/); do
m=$(grep "connMaxIdleTime" $fl)
set -e
if [ -z "$m" ]; then
perl -i -p0e "s/( +)(\"maxOpenConns\": .*)/\1\2,\n\1\"connMaxIdleTime\": \"30s\"/g" $fl
perl -i -p0e "s/([ \t]+)(\"maxOpenConns\": .*)/\1\2,\n\1\"connMaxIdleTime\": \"30s\"/g" $fl
fi
done