Skip to content

Commit

Permalink
Merge pull request #23 from RunOnFlux/develop
Browse files Browse the repository at this point in the history
add check for index.php
  • Loading branch information
alihm authored Feb 22, 2024
2 parents 0b9d78f + 044a5f8 commit a25242c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ for contentPath in \
sourceTarArgs+=( --exclude "./$contentPath" )
fi
done
if [ -d "/var/www/html/wp-admin" ] && [ -f "/var/www/html/wp-config.php" ]; then
if [ -d "/var/www/html/wp-admin" ] && [ -f "/var/www/html/wp-config.php" ] && [ -f "/var/www/html/index.php" ]; then
echo "Wordpress already there skipping..."
else
tar "${sourceTarArgs[@]}" . | tar "${targetTarArgs[@]}"
Expand Down

0 comments on commit a25242c

Please sign in to comment.