From b4458914c4d83063139fbde3d0a38ef6ac432abe Mon Sep 17 00:00:00 2001 From: diosmosis Date: Mon, 23 Dec 2024 00:53:11 -0800 Subject: [PATCH] fix setup_finished file creation --- scripts/local-dev-entrypoint.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/local-dev-entrypoint.sh b/scripts/local-dev-entrypoint.sh index d726c745b..ee8979ddf 100755 --- a/scripts/local-dev-entrypoint.sh +++ b/scripts/local-dev-entrypoint.sh @@ -24,12 +24,13 @@ function export_global() { fi export WORDPRESS_FOLDER=${WORDPRESS_FOLDER:-$WORDPRESS_VERSION} + export WORDPRESS_FOLDER_BASE=$WORDPRESS_FOLDER } function export_install_dependent() { ARG_MULTISITE="$1" if [[ "$ARG_MULTISITE" = "1" ]]; then - export WORDPRESS_FOLDER="$WORDPRESS_FOLDER-multi" + export WORDPRESS_FOLDER="$WORDPRESS_FOLDER_BASE-multi" fi export WP_DB_NAME=$(echo "wp_matomo_$WORDPRESS_FOLDER" | sed 's/\./_/g' | sed 's/-/_/g') @@ -555,7 +556,7 @@ wait_for_database install_wordpress 0 install_wordpress 1 -touch /var/www/html/$WORDPRESS_FOLDER/setup_finished || true -touch /var/www/html/$WORDPRESS_FOLDER-multi/setup_finished || true +touch /var/www/html/$WORDPRESS_FOLDER_BASE/setup_finished || true +touch /var/www/html/$WORDPRESS_FOLDER_BASE-multi/setup_finished || true start_webserver "$@"