prints out wp migrate command and asks for go
This commit is contained in:
@@ -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 ; \
|
||||
|
||||
Reference in New Issue
Block a user