From f186a3dde923ce29fe9eccd7a7cd0e451d4c65b4 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Tue, 4 May 2021 09:30:38 -0400 Subject: [PATCH] make sure user sees influxdb migration message by requiring enter to be pressed to continue --- salt/common/tools/sbin/soup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/soup b/salt/common/tools/sbin/soup index b1e326c73..b08271e1f 100755 --- a/salt/common/tools/sbin/soup +++ b/salt/common/tools/sbin/soup @@ -309,7 +309,9 @@ post_2.3.30_to_2.3.40() { post_2.3.5X_to_2.3.60() { # These are post upgrade changes that need to take place after all the new states have been applied. echo "" - echo "Migrating InfluxDB data in the background. Depending on how much data is present, the process may take an hour or two to complete after soup finishes." + echo "Migrating InfluxDB data in the background. Depending on how much data is present, the process may take an hour or two to complete after soup finishes. Do not restart the so-influxdb container or server until this completes." + echo "The status can be checked in $INFLUXDB_MIGRATION_LOG" + read -p "Press enter to continue." docker exec -t so-influxdb /bin/bash -c 'influx -ssl -unsafeSsl -database telegraf -execute "SELECT mean(*) INTO "so_long_term".:MEASUREMENT FROM /.*/ GROUP BY time(5m),*"' >> "$INFLUXDB_MIGRATION_LOG" 2>&1 & POSTVERSION=2.3.60