Added new config values to update

This commit is contained in:
deajan 2016-08-31 11:25:27 +02:00
parent c0e9c14fa2
commit 7ccc469dd6
1 changed files with 4 additions and 0 deletions

View File

@ -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