create ctl symlink if needed

This commit is contained in:
j 2016-03-25 16:59:56 +01:00
parent 038bdf2dd4
commit 6018ddd374

6
ctl
View file

@ -162,7 +162,11 @@ if [ "$1" == "init" ]; then
if [ ! -e "${PLATFORM_ENV}" ]; then if [ ! -e "${PLATFORM_ENV}" ]; then
git clone --depth 1 https://git.0x2620.org/openmedialibrary_platform_${PLATFORM}.git "${PLATFORM_ENV}" git clone --depth 1 https://git.0x2620.org/openmedialibrary_platform_${PLATFORM}.git "${PLATFORM_ENV}"
fi fi
"$0" update_static cd "${BASE}"
if [ ! -e "${BASE}/ctl" ]; then
ln -s openmedialibrary/ctl
fi
"${BASE}/ctl" update_static
exit exit
fi fi
if [ "$1" == "update" ]; then if [ "$1" == "update" ]; then