aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-start/start.sh
diff options
context:
space:
mode:
authorStephane Gamard <stephane.gamard@searchbox.com>2014-07-11 00:46:47 +0200
committerStephane Gamard <stephane.gamard@searchbox.com>2014-07-11 00:46:47 +0200
commit35db70589ea8293050d663763ae2478e4d4c4740 (patch)
treee6b644b775a8bc72dbb3c44fc934a3d41e64149b /sonar-start/start.sh
parentb4894854dda92dfa537bb0da9c118ddfc5ed15b7 (diff)
downloadsonarqube-35db70589ea8293050d663763ae2478e4d4c4740.tar.gz
sonarqube-35db70589ea8293050d663763ae2478e4d4c4740.zip
SONAR-4898 - updated wrapper.conf for start.jar
Diffstat (limited to 'sonar-start/start.sh')
-rwxr-xr-xsonar-start/start.sh16
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