From 6f0272073040fb2d2f9a8c11d1360c0b98079795 Mon Sep 17 00:00:00 2001 From: Nick Anderson Date: Tue, 28 May 2024 13:41:22 -0500 Subject: [PATCH] Improved messages about free space desired for hub upgrade This change simply aims to make the amount of free disk space desired more clear. Ticket: ENT-11835 Changelog: None (cherry picked from commit ca203fe2dd81a0e982dc7c50bf80ca945e24ca3a) --- packaging/common/cfengine-hub/preinstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/common/cfengine-hub/preinstall.sh b/packaging/common/cfengine-hub/preinstall.sh index a33f7159c..1ccdf28bd 100644 --- a/packaging/common/cfengine-hub/preinstall.sh +++ b/packaging/common/cfengine-hub/preinstall.sh @@ -65,7 +65,7 @@ if migrating_postgres; then megabytes_need="$(du -sBM $PREFIX/state/pg/data | awk '{gsub(/[^0-9]/,"",$1);print $1}')" if [ "$megabytes_free" -le "$megabytes_need" ]; then cf_console echo "Not enough disk space to create DB backup:" - cf_console echo "${megabytes_free}M available in $BACKUP_DIR" + cf_console echo "${megabytes_free}M available in $BACKUP_DIR want at least ${megabytes_need}M free" cf_console echo "${megabytes_need}M used by $PREFIX/state/pg/data" cf_console echo "You have the following options:" cf_console echo "* Free up some disk space before upgrading"