From 75298677b05e8f6b3532cd1301d156e24d36a8cb Mon Sep 17 00:00:00 2001 From: Jean-Christophe Vanhalle Date: Fri, 24 Nov 2023 08:29:00 +0100 Subject: [PATCH] prints out wp migrate command and asks for go --- migrate-db-paths.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/migrate-db-paths.sh b/migrate-db-paths.sh index 5e9e455..d861c40 100755 --- a/migrate-db-paths.sh +++ b/migrate-db-paths.sh @@ -6,6 +6,16 @@ set -a . "${PWD}/env_files/migrate-db.env" set +a +echo wp migratedb find-replace --find="//${REMOTE_WP_URL}","${REMOTE_WP_PATH}" --replace="//${APP_URL}",/var/www/html + +read -p "Do we run the thing ? " REPLY +if [ "$REPLY" != "${REPLY#[YyOo]}" ]; then + echo "we carry on" +else + echo "we stop" + exit 1 +fi + date +%H-%M-%S docker exec --user www-data "${PREFIX}-app" /bin/sh -c ' wp plugin install wp-migrate-db ; \