create ctl symlink if needed

This commit is contained in:
j 2016-03-25 16:59:56 +01:00
parent 038bdf2dd4
commit 6018ddd374
1 changed files with 5 additions and 1 deletions

6
ctl
View File

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