aboutsummaryrefslogtreecommitdiffstats
path: root/start.sh
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2014-05-06 09:14:47 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2014-05-06 09:32:42 +0200
commit6267bfe41bc95b8202193e9b50d434ec8be5f5f4 (patch)
tree308e74950638aff2eba54e160de4ad97305fe430 /start.sh
parent29611c664ced4bae8a71bef5ad616d26ccab4c02 (diff)
downloadsonarqube-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-xstart.sh21
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