Skip to content

Commit

Permalink
fix setup_finished file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Dec 23, 2024
1 parent 4ca4908 commit b445891
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/local-dev-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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 "$@"

0 comments on commit b445891

Please sign in to comment.