Added .json config file to installation.

This commit is contained in:
Winston Li 2014-12-05 22:39:07 +00:00
parent d6fd31c239
commit c9df3e23ec
3 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,5 @@
{
"port": 80,
"rootGitDirectory": "/var/wlgb/git",
"apiKey": ""
}

View file

@ -57,6 +57,10 @@ do_start()
start-stop-daemon --start --quiet --make-pidfile --pidfile $PIDFILE --exec $DAEMON -- \
$DAEMON_ARGS >> /var/log/wlgb/out.log 2>> /var/log/err.log &
echo "WriteLatex-Git Bridge started."
echo "Config file at /etc/wlgb/config.json"
echo "Log file at /var/log/wlgb/out.log"
echo "Error file at /var/log/err.log"
echo
return 0
# Add code here, if necessary, that waits for the process to be ready
# to handle requests from services started subsequently which depend

View file

@ -6,5 +6,7 @@ command -v ant >/dev/null 2>&1 && command -v /usr/lib/jvm/java-7-openjdk-amd64/b
ant all &&\
mv ./bin/writelatex-git-bridge.jar /usr/local/sbin/ &&\
cp ./bin/wlgb /etc/init.d/ &&\
mkdir /var/log/wlgb
mkdir /var/log/wlgb &&\
mkdir /etc/wlgb
cp ./bin/config.json /etc/wlgb/
/usr/sbin/update-rc.d -f wlgb defaults