mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-30 17:48:03 +08:00
14 lines
337 B
Bash
14 lines
337 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
cd /mindoc/
|
|
|
|
if [ ! -f "/mindoc/conf/app.conf" ] ; then
|
|
cp /mindoc/conf/app.conf.example /mindoc/conf/app.conf
|
|
sed -i "s#^db_adapter=.*#db_adapter=sqlite3#g" conf/app.conf
|
|
sed -i "s#^db_database.*#db_database=./database/mindoc.db#g" conf/app.conf
|
|
fi
|
|
|
|
|
|
/mindoc/mindoc_linux_amd64 install
|
|
/mindoc/mindoc_linux_amd64 |