File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 9292
9393 if [ "$free_disk" -lt "$required" ]; then
9494 echo
95+ echo -------------------------------------------------------------------------------------
9596 echo "WARNING: Upgrading PostgreSQL would require an additional $(numfmt --to=si $(($required - $free_disk))) of disk space"
9697 echo "Please free up some space, or expand your disk, before continuing."
9798 echo
9899 echo 'To avoid upgrading change "templates/postgres.template.yml" TO "templates/postgres.13.template.yml" in containers/app.yml'
99100 echo 'You can run "./launcher start app" to restart your app in the meanwhile.'
101+ echo -------------------------------------------------------------------------------------
100102 exit 1
101103 fi
102104
@@ -137,7 +139,13 @@ run:
137139 echo UPGRADE OF POSTGRES COMPLETE
138140 echo
139141 echo Old ${PG_MAJOR_OLD} database is stored at /shared/postgres_data_old
142+ echo
143+ echo To complete the upgrade, rebuild again using:
144+ echo
145+ echo ./launcher rebuild app
140146 echo -------------------------------------------------------------------------------------
147+ # Magic exit status to denote no failure
148+ exit 77
141149 fi
142150
143151 - replace :
Original file line number Diff line number Diff line change 9292
9393 if [ "$free_disk" -lt "$required" ]; then
9494 echo
95+ echo -------------------------------------------------------------------------------------
9596 echo "WARNING: Upgrading PostgreSQL would require an additional $(numfmt --to=si $(($required - $free_disk))) of disk space"
9697 echo "Please free up some space, or expand your disk, before continuing."
9798 echo
9899 echo 'To avoid upgrading change "templates/postgres.template.yml" TO "templates/postgres.13.template.yml" in containers/app.yml'
99100 echo 'You can run "./launcher start app" to restart your app in the meanwhile.'
101+ echo -------------------------------------------------------------------------------------
100102 exit 1
101103 fi
102104
@@ -137,7 +139,13 @@ run:
137139 echo UPGRADE OF POSTGRES COMPLETE
138140 echo
139141 echo Old ${PG_MAJOR_OLD} database is stored at /shared/postgres_data_old
142+ echo
143+ echo To complete the upgrade, rebuild again using:
144+ echo
145+ echo ./launcher rebuild app
140146 echo -------------------------------------------------------------------------------------
147+ # Magic exit status to denote no failure
148+ exit 77
141149 fi
142150
143151 - replace :
You can’t perform that action at this time.
0 commit comments