Browse Source

prints out wp migrate command and asks for go

test
Jean-Christophe Vanhalle 2 years ago
parent
commit
75298677b0
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      migrate-db-paths.sh

+ 10
- 0
migrate-db-paths.sh View File

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

Loading…
Cancel
Save