Fix symlink creations
It was failing at container restart as they already exist.
This commit is contained in:
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…
Reference in New Issue
Block a user