Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENT-11835: Improved messages about free space desired for hub upgrade (3.21) #1432

Merged
merged 1 commit into from
May 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packaging/common/cfengine-hub/preinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading