Skip to content

Commit

Permalink
Check for DB_PATH and FILES_PATH
Browse files Browse the repository at this point in the history
Newer versions of the script no longer refer to these configuration variables. They have been replaced with WP_ROOT. If these variables are detected in the config file, inform the user to update the config file before running the script.
  • Loading branch information
basilhendroff committed Jan 2, 2021
1 parent 7803aa3 commit 847fe09
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wordpress-jail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ if [ -z "${TIME_ZONE}" ]; then
exit 1
fi

if [ -n "${FILES_PATH}" ] || [ -n "${DB_PATH}" ]; then
print_err 'Configuration error: WP_ROOT replaces FILES_PATH and DB_PATH in newer script versions. Update ${CONFIG_NAME} and run the script again.'
exit 1
fi

DB_PATH=${POOL_PATH}${WP_ROOT%/}/db
FILES_PATH=${POOL_PATH}${WP_ROOT%/}/files

Expand Down

0 comments on commit 847fe09

Please sign in to comment.