diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2014-05-06 09:14:47 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2014-05-06 09:32:42 +0200 |
commit | 6267bfe41bc95b8202193e9b50d434ec8be5f5f4 (patch) | |
tree | 308e74950638aff2eba54e160de4ad97305fe430 /start.sh | |
parent | 29611c664ced4bae8a71bef5ad616d26ccab4c02 (diff) | |
download | sonarqube-6267bfe41bc95b8202193e9b50d434ec8be5f5f4.tar.gz sonarqube-6267bfe41bc95b8202193e9b50d434ec8be5f5f4.zip |
start-mac.sh and stop-mac.sh are renamed start/stop.sh as they support linux
Diffstat (limited to 'start.sh')
-rwxr-xr-x | start.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/start.sh b/start.sh new file mode 100755 index 00000000000..2b4f1d3ded6 --- /dev/null +++ b/start.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +if [[ "$OSTYPE" == "darwin"* ]]; then + OS='macosx-universal-64' +else + OS='linux-x86-64' +fi + +if ! ls sonar-application/target/sonarqube-*.zip &> /dev/null; then + echo 'Sources are not built' + ./build.sh +fi + +cd sonar-application/target/ +if ! ls sonarqube-*/bin/$OS/sonar.sh &> /dev/null; then + unzip sonarqube-*.zip +fi +cd sonarqube-* +bin/$OS/sonar.sh restart +sleep 1 +tail -100f logs/sonar.log |