This cleans up the update-db script, and doesn't require that the variables be declared.
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
source ".env"
|
||||
set -o allexport
|
||||
source .env
|
||||
set +o allexport
|
||||
|
||||
website="https://$VIRTUAL_HOST"
|
||||
command="docker compose exec database mariadb"
|
||||
DATABASE_SERVICE="database_${COMPOSE_PROJECT_NAME}"
|
||||
MYSQL_USER=wordpress
|
||||
WORDPRESS_DB_PASSWORD=wordpress
|
||||
MYSQL_DATABASE=wordpress
|
||||
command="docker compose exec $DATABASE_SERVICE mariadb"
|
||||
|
||||
echo $website
|
||||
|
||||
|
||||
Reference in New Issue
Block a user