diff options
author | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-11 00:46:47 +0200 |
---|---|---|
committer | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-11 00:46:47 +0200 |
commit | 35db70589ea8293050d663763ae2478e4d4c4740 (patch) | |
tree | e6b644b775a8bc72dbb3c44fc934a3d41e64149b /sonar-start/start.sh | |
parent | b4894854dda92dfa537bb0da9c118ddfc5ed15b7 (diff) | |
download | sonarqube-35db70589ea8293050d663763ae2478e4d4c4740.tar.gz sonarqube-35db70589ea8293050d663763ae2478e4d4c4740.zip |
SONAR-4898 - updated wrapper.conf for start.jar
Diffstat (limited to 'sonar-start/start.sh')
-rwxr-xr-x | sonar-start/start.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sonar-start/start.sh b/sonar-start/start.sh new file mode 100755 index 00000000000..80bcb9094f4 --- /dev/null +++ b/sonar-start/start.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +if [[ "$OSTYPE" == "darwin"* ]]; then + OS='macosx-universal-64' +else + OS='linux-x86-64' +fi + +cd target/ +if ! ls sonarqube-*/bin/$OS/sonar.sh &> /dev/null; then + unzip sonarqube-*.zip +fi +cd sonarqube-* +bin/$OS/sonar.sh restart +sleep 3 +tail -n1000 -f logs/sonar.log |