mirror of
https://github.com/d0zingcat/ghost-docker.git
synced 2026-05-13 23:16:44 +00:00
Add migration script for Ghost CLI -> Docker installs
- This script handles the copy of both assets and the MySQL database from an existing install to a new Docker based install - Its currently been tested on the "happy path" of a Ghost CLI install and works
This commit is contained in:
@@ -6,7 +6,7 @@ set -u
|
||||
if [ -n "$MYSQL_MULTIPLE_DATABASES" ]; then
|
||||
echo "Creating multiple databases: $MYSQL_MULTIPLE_DATABASES"
|
||||
|
||||
for db in $(echo $MYSQL_MULTIPLE_DATABASES | tr ',' ' '); do
|
||||
for db in $(echo "$MYSQL_MULTIPLE_DATABASES" | tr ',' ' '); do
|
||||
echo "Creating database: $db"
|
||||
mysql -u root -p"$MYSQL_ROOT_PASSWORD" <<-EOSQL
|
||||
CREATE DATABASE IF NOT EXISTS \`$db\`;
|
||||
|
||||
Reference in New Issue
Block a user