From 2fa1c1a85aa71b2f7c54a3ff1020679d9e856562 Mon Sep 17 00:00:00 2001 From: Dany LE Date: Mon, 3 Oct 2022 16:59:56 +0200 Subject: [PATCH] create tmp path for db --- mkimg.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mkimg.sh b/mkimg.sh index 79520fa..e85c697 100755 --- a/mkimg.sh +++ b/mkimg.sh @@ -51,15 +51,13 @@ cd $B # start antd-tunnel service if [ ! -f "$W/antd-config.ini" ]; then cp ./opt/www/antd-config.ini $W/antd-config.ini - mkdir -p $W/db - chmod 700 $W/db fi [ ! -f "$W/runner.ini" ] && cp ./opt/www/runner.ini $W/runner.ini export LD_LIBRARY_PATH="$B/usr/lib/" echo "Runing Antd in $B with configuration $W/antd-config.ini" # TODO this is not good touch /tmp/.antos_pkgcache -ln -sf $W/db /tmp/antos-db +ln -sf $W/ /tmp/antos-db ./usr/bin/antd $W/antd-config.ini >/dev/null 2>&1 | ( sleep 2 && ./opt/www/bin/runner $W/runner.ini >/dev/null 2>&1 &) EOF