Browse Source

prevents migration from failing when migrate-db is already activated

test
Jean-Christophe Vanhalle 2 years ago
parent
commit
623bd1741d
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      migrate-db-paths.sh

+ 4
- 4
migrate-db-paths.sh View File

@@ -6,12 +6,12 @@ set -a
. "${PWD}/env_files/migrate-db.env"
set +a

+date +%H-%M-%S
date +%H-%M-%S
docker exec --user www-data "${PREFIX}-app" /bin/sh -c '
wp plugin install wp-migrate-db && \
wp plugin activate wp-migrate-db && \
wp plugin install wp-migrate-db ; \
wp plugin activate wp-migrate-db ; \
wp migratedb find-replace \
--find='"//${REMOTE_WP_URL}"','"${REMOTE_WP_PATH}"' \
--replace='"//${APP_URL}"',/var/www/html
'
+date +%H-%M-%S
date +%H-%M-%S

Loading…
Cancel
Save