mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-27 18:19:33 +00:00
Fix connMaxIdleTime after spaces were changed to tabs
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user