1
0
Fork 0

Fix symlink creations

It was failing at container restart as they already exist.
pull/34/head^2
Jonathan Piron 8 years ago
parent 4f3ba3d52c
commit c2f8078a05

@ -9,10 +9,10 @@ ROOT_PATH=${SELF_URL_PATH/#http*\:\/\/*\//}
if [ "${ROOT_PATH}" == "${SELF_URL_PATH}" ]; then if [ "${ROOT_PATH}" == "${SELF_URL_PATH}" ]; then
# no root path in SELF_URL_PATH. # no root path in SELF_URL_PATH.
mkdir -p /var/tmp mkdir -p /var/tmp
ln -s "/var/www" "/var/tmp/www" ln -sf "/var/www" "/var/tmp/www"
else else
mkdir -p /var/tmp/www mkdir -p /var/tmp/www
ln -s "/var/www" "/var/tmp/www/${ROOT_PATH}" ln -sf "/var/www" "/var/tmp/www/${ROOT_PATH}"
fi fi
php /configure-db.php php /configure-db.php

Loading…
Cancel
Save