mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-27 10:19:34 +00:00
Set connMaxIdleTime in all db configs to prevent warnings in audit log
Should no longer see these messages from now on: [mysql] closing bad idle connection: connection reset by peer [mysql] driver: bad connection
This commit is contained in:
@@ -97,6 +97,10 @@ sed -i -e "s/\"username\": \".*\"/\"username\": \"$PKI_EMAIL_USER\"/" config/not
|
||||
sed -i -e "s/\"from\": \".*\"/\"from\": \"$PKI_EMAIL_FROM\"/" config/notify-mailer.json
|
||||
sed -i -e "s/\"purgeInterval\": \".*\"/\"purgeInterval\": \"1s\"/" config/akamai-purger.json
|
||||
|
||||
for fl in $(grep -Rl maxOpenConns config/); do
|
||||
perl -i -p0e "s/( +)(\"maxOpenConns\": .*)/\1\2,\n\1\"connMaxIdleTime\": \"30s\"/g" $fl
|
||||
done
|
||||
|
||||
if [ "$PKI_EMAIL_PASS" != "" ]; then
|
||||
sed -i -e "s/.*/$PKI_EMAIL_PASS/" secrets/smtp_password
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user