1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-02-21 23:10:59 +00:00
overleaf/services/git-bridge/install.sh
2014-12-05 21:00:20 +00:00

9 lines
347 B
Bash
Executable file

if [ "$(id -u)" != "0" ]; then
echo "You must be root to install" 1>&2
exit 1
fi
command -v ant >/dev/null 2>&1 && command -v /usr/lib/jvm/java-7-openjdk-amd64/bin/javac >/dev/null 2>&1 || ./install-deps.sh
ant all &&\
cp ./bin/writelatex-git-bridge.jar /usr/local/sbin/ &&\
cp ./bin/wlgb /etc/init.d/ &&\
/usr/sbin/update-rc.d -f wlgb defaults