File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,10 @@ run:
132132 exit 1
133133 fi
134134
135- mv /shared/postgres_data /shared/postgres_data_old
136- mv /shared/postgres_data_new /shared/postgres_data
135+ mkdir /shared/postgres_data_old
136+ mv /shared/postgres_data/* /shared/postgres_data_old
137+ mv /shared/postgres_data_new/* /shared/postgres_data
138+ rmdir /shared/postgres_data_new
137139
138140 echo -------------------------------------------------------------------------------------
139141 echo UPGRADE OF POSTGRES COMPLETE
Original file line number Diff line number Diff line change @@ -139,8 +139,10 @@ run:
139139 exit 1
140140 fi
141141
142- mv /shared/postgres_data /shared/postgres_data_old
143- mv /shared/postgres_data_new /shared/postgres_data
142+ mkdir /shared/postgres_data_old
143+ mv /shared/postgres_data/* /shared/postgres_data_old
144+ mv /shared/postgres_data_new/* /shared/postgres_data
145+ rmdir /shared/postgres_data_new
144146
145147 echo -------------------------------------------------------------------------------------
146148 echo UPGRADE OF POSTGRES COMPLETE
You can’t perform that action at this time.
0 commit comments