From 7ccc469dd686b4c89d6e0e81d3b49da4fec29114 Mon Sep 17 00:00:00 2001 From: deajan Date: Wed, 31 Aug 2016 11:25:27 +0200 Subject: [PATCH] Added new config values to update --- upgrade-v1.x-2.1x.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/upgrade-v1.x-2.1x.sh b/upgrade-v1.x-2.1x.sh index 30efc18..1b72ef3 100755 --- a/upgrade-v1.x-2.1x.sh +++ b/upgrade-v1.x-2.1x.sh @@ -134,6 +134,10 @@ function RewriteConfigFiles { sed -i'.tmp' '/^BACKUP_SIZE_MINIMUM=*/a\'$'\n''GET_BACKUP_SIZE=yes\'$'\n''' "$config_file" fi + if ! grep "^MYSQLDUMP_OPTIONS=" "$config_file" > /dev/null; then + sed -i'.tmp' '/^HARD_MAX_EXEC_TIME_DB_TASK=*/a\'$'\n''MYSQLDUMP_OPTIONS="--opt --single-transaction"\'$'\n''' "$config_file" + fi + if ! grep "^RSYNC_REMOTE_PATH=" "$config_file" > /dev/null; then sed -i'.tmp' '/^SSH_COMPRESSION=*/a\'$'\n''RSYNC_REMOTE_PATH=\'$'\n''' "$config_file" fi