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:
132
132
exit 1
133
133
fi
134
134
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
137
139
138
140
echo -------------------------------------------------------------------------------------
139
141
echo UPGRADE OF POSTGRES COMPLETE
Original file line number Diff line number Diff line change @@ -139,8 +139,10 @@ run:
139
139
exit 1
140
140
fi
141
141
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
144
146
145
147
echo -------------------------------------------------------------------------------------
146
148
echo UPGRADE OF POSTGRES COMPLETE
You can’t perform that action at this time.
0 commit comments