create tmp path for db
All checks were successful
gitea-sync/antos-appimage/pipeline/head This commit looks good

This commit is contained in:
Dany LE 2022-10-03 16:33:31 +02:00
parent daef280c0f
commit 95f1dcf02e
2 changed files with 8 additions and 2 deletions

View File

@ -4,7 +4,7 @@ plugins=./opt/www/lib/
plugins_ext=.so
# These options can be changed
tmpdir=/tmp/
database=./
database=/tmp/antos-db
maxcon=500
backlog=5000
workers = 4

View File

@ -49,11 +49,17 @@ B=$(dirname $0)
cd $B
[ ! -d "$W" ] && echo "$W is not a directory" && exit 1
# start antd-tunnel service
[ ! -f "$W/antd-config.ini" ] && cp ./opt/www/antd-config.ini $W/antd-config.ini
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
./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