Skip to content

Commit

Permalink
New installation check
Browse files Browse the repository at this point in the history
Improved check for existing install based on WP_ROOT.
  • Loading branch information
basilhendroff committed Jan 2, 2021
1 parent fda222b commit 90ea4ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wordpress-jail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ then
fi

# Check that this is a new installation
if [ "$(ls -A "${FILES_PATH}")" ] || [ "$(ls -A "${DB_PATH}")" ]
if [ -e "${POOL_PATH}${WP_ROOT}" ]
then
print_err "This script only works for new installations. The script cannot proceed if FILES_PATH and DB_PATH are not both empty."
print_err "This script only works for new installations. The script cannot proceed if WP_ROOT exists."
exit 1
fi

Expand Down

0 comments on commit 90ea4ed

Please sign in to comment.