prevents migration from failing when migrate-db is already activated

This commit is contained in:
Jean-Christophe Vanhalle
2023-11-24 02:03:31 +01:00
parent 7c72290ccf
commit 623bd1741d

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