Parcourir la source

prevents migration from failing when migrate-db is already activated

test
Jean-Christophe Vanhalle il y a 2 ans
Parent
révision
623bd1741d
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4
    4
      migrate-db-paths.sh

+ 4
- 4
migrate-db-paths.sh Voir le fichier

@@ -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

Chargement…
Annuler
Enregistrer