Skip to content

Commit

Permalink
Check for existence of postgres-previous (since OLD_STORE_DIR is not
Browse files Browse the repository at this point in the history
cleaned up)
  • Loading branch information
rkoster committed Dec 11, 2017
1 parent 8ee182a commit 3198b11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jobs/migrate-postgres/templates/pre-start.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
OLD_STORE_DIR=/var/vcap/store/postgres-9.4
NEW_STORE_DIR=/var/vcap/store/postgres

if [ -d ${OLD_STORE_DIR} ]; then
if [ ! -d ${NEW_STORE_DIR}/postgres-previous ]; then
mkdir -p ${NEW_STORE_DIR}
ln -s ${OLD_STORE_DIR} ${NEW_STORE_DIR}/postgres-unknown
/var/vcap/jobs/postgres/bin/pre-start
fi
fi

0 comments on commit 3198b11

Please sign in to comment.