Skip to content

Commit

Permalink
Update wordpress-jail.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
basilhendroff committed Jan 6, 2021
1 parent 02d621b commit 6b9205f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wordpress-jail.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ if [ -n "${FILES_PATH}" ] || [ -n "${DB_PATH}" ]; then
exit 1
fi
if [ ${WP_ROOT:0:1} != "/" ]; then
WP_ROOT="/${WP_ROOT%/}"
WP_ROOT="/${WP_ROOT}"
fi
WP_ROOT="${WP_ROOT%/}"

# Check that this is a new installation
if [ -e "${POOL_PATH}${WP_ROOT}" ]
then
Expand Down

0 comments on commit 6b9205f

Please sign in to comment.