mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Fixed typo and changed to only copy config file if one does not already exist.
This commit is contained in:
parent
5633526845
commit
2310aa124f
1 changed files with 11 additions and 11 deletions
|
@ -1,14 +1,3 @@
|
||||||
command -v ant >/dev/null 2>&1 && command -v /usr/lib/jvm/java-7-openjdk-amd64/bin/javac >/dev/null 2>&1 || installDeps
|
|
||||||
mvn package &&\
|
|
||||||
sudo mv ./target/writelatex-git-bridge-1.0-SNAPSHOT-jar-with-dependencies.jar /usr/local/sbin/writelatex-git-bridge.jar &&\
|
|
||||||
sudo cp ./bin/wlgb /etc/init.d/ &&\
|
|
||||||
sudo mkdir -p /var/log/wlgb &&\
|
|
||||||
sudo mkdir -p /etc/wlgb &&\
|
|
||||||
if [ -f /etc/wlgb/config.json ]; then
|
|
||||||
sudo cp ./bin/config.json /etc/wlgb/
|
|
||||||
fi &&\
|
|
||||||
sudo /usr/sbin/update-rc.d -f wlgb defaults
|
|
||||||
|
|
||||||
installDeps() {
|
installDeps() {
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y maven2
|
sudo apt-get install -y maven2
|
||||||
|
@ -17,3 +6,14 @@ installDeps() {
|
||||||
sudo update-alternatives --set javac /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/javac
|
sudo update-alternatives --set javac /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/javac
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
command -v ant >/dev/null 2>&1 && command -v /usr/lib/jvm/java-7-openjdk-amd64/bin/javac >/dev/null 2>&1 || installDeps
|
||||||
|
sudo mvn package &&\
|
||||||
|
sudo mv ./target/writelatex-git-bridge-1.0-SNAPSHOT-jar-with-dependencies.jar /usr/local/sbin/writelatex-git-bridge.jar &&\
|
||||||
|
sudo cp ./bin/wlgb /etc/init.d/ &&\
|
||||||
|
sudo mkdir -p /var/log/wlgb &&\
|
||||||
|
sudo mkdir -p /etc/wlgb &&\
|
||||||
|
if [ ! -f /etc/wlgb/config.json ]; then
|
||||||
|
sudo cp ./bin/config.json /etc/wlgb/
|
||||||
|
fi &&\
|
||||||
|
sudo /usr/sbin/update-rc.d -f wlgb defaults
|
||||||
|
|
Loading…
Reference in a new issue