|
|
|
@ -85,7 +85,7 @@ if [[ "$1" == apache2* ]] || [ "$1" == php-fpm ]; then |
|
|
|
|
done |
|
|
|
|
# only touch "wp-config.php" if we have environment-supplied configuration values |
|
|
|
|
if [ "$haveConfig" ]; then |
|
|
|
|
: "${WORDPRESS_DB_DIR:=database}" |
|
|
|
|
: "${WORDPRESS_DB_DIR:=wp-content/database/}" |
|
|
|
|
: "${WORDPRESS_DB_FILE:=database.sqlite}" |
|
|
|
|
|
|
|
|
|
# version 4.4.1 decided to switch to windows line endings, that breaks our seds and awks |
|
|
|
@ -135,9 +135,9 @@ EOPHP |
|
|
|
|
fi |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
set_config 'DB_DIR' "$WORDPRESS_DB_DIR" |
|
|
|
|
set_config 'DB_DIR' "$(readlink -f $WORDPRESS_DB_DIR)" # Define an absolute path |
|
|
|
|
set_config 'DB_FILE' "$WORDPRESS_DB_FILE" |
|
|
|
|
set_config 'USE_MYSQL' "0" "integer" |
|
|
|
|
set_config 'USE_MYSQL' 0 boolean |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for unique in "${uniqueEnvs[@]}"; do |
|
|
|
|