diff --git a/wordpress-jail.sh b/wordpress-jail.sh index 75ee049..d04729c 100755 --- a/wordpress-jail.sh +++ b/wordpress-jail.sh @@ -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