From 5e7206ce8b7f188f33e7e34e37c02045bb8b78a6 Mon Sep 17 00:00:00 2001 From: deajan Date: Tue, 16 Aug 2016 21:16:09 +0200 Subject: [PATCH] Added keep logging to upgrade script --- upgrade-v1.x-2.x.sh => upgrade-v1.x-2.1x.sh | 4 ++++ 1 file changed, 4 insertions(+) rename upgrade-v1.x-2.x.sh => upgrade-v1.x-2.1x.sh (97%) diff --git a/upgrade-v1.x-2.x.sh b/upgrade-v1.x-2.1x.sh similarity index 97% rename from upgrade-v1.x-2.x.sh rename to upgrade-v1.x-2.1x.sh index dcf5e30..ac110c2 100755 --- a/upgrade-v1.x-2.x.sh +++ b/upgrade-v1.x-2.1x.sh @@ -180,6 +180,10 @@ function RewriteConfigFiles { sed -i'.tmp' '/^DELTA_COPIES=*/a\'$'\n''BANDWIDTH=0\'$'\n''' "$config_file" fi + if ! grep "^KEEP_LOGGING=" "$config_file" > /dev/null; then + sed -i'.tmp' '/^HARD_MAX_EXEC_TIME_TOTAL=*/a\'$'\n''KEEP_LOGGING=1801\'$'\n''' "$config_file" + fi + if ! grep "^STOP_ON_CMD_ERROR=" "$config_file" > /dev/null; then sed -i'.tmp' '/^MAX_EXEC_TIME_PER_CMD_AFTER=*/a\'$'\n''STOP_ON_CMD_ERROR=no\'$'\n''' "$config_file" fi