mindoc/start.sh

12 lines
249 B
Bash
Raw Permalink Normal View History

#!/bin/sh
set -e
2018-06-06 11:43:25 +08:00
cd /mindoc/
2018-06-06 11:43:25 +08:00
if [ ! -f "/mindoc/conf/app.conf" ] ; then
cp /mindoc/conf/app.conf.example /mindoc/conf/app.conf
2018-02-03 17:38:21 +08:00
fi
2018-09-17 18:22:41 +08:00
export ZONEINFO=/mindoc/lib/time/zoneinfo.zip
2018-06-06 11:43:25 +08:00
/mindoc/mindoc_linux_amd64 install
2019-03-21 15:00:05 +08:00
exec /mindoc/mindoc_linux_amd64