From c2f8078a05c6602f036e43092e2691d03ae9c455 Mon Sep 17 00:00:00 2001 From: Jonathan Piron Date: Thu, 12 Jan 2017 14:43:06 +0100 Subject: [PATCH] Fix symlink creations It was failing at container restart as they already exist. --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index a09be81..1011e4c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -9,10 +9,10 @@ ROOT_PATH=${SELF_URL_PATH/#http*\:\/\/*\//} if [ "${ROOT_PATH}" == "${SELF_URL_PATH}" ]; then # no root path in SELF_URL_PATH. mkdir -p /var/tmp - ln -s "/var/www" "/var/tmp/www" + ln -sf "/var/www" "/var/tmp/www" else mkdir -p /var/tmp/www - ln -s "/var/www" "/var/tmp/www/${ROOT_PATH}" + ln -sf "/var/www" "/var/tmp/www/${ROOT_PATH}" fi php /configure-db.php