aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2014-05-05 14:21:26 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2014-05-05 16:52:02 +0200
commit6866270bef8936a714ec39056a849a38142e7e72 (patch)
tree335830dd5879aff8f5b48eba29c21cc841465855
parent61dab8d55db243ec9ff632b71b49baf980ffa83a (diff)
downloadsonarqube-6866270bef8936a714ec39056a849a38142e7e72.tar.gz
sonarqube-6866270bef8936a714ec39056a849a38142e7e72.zip
Experimental support of linux in start-mac.sh
-rwxr-xr-xstart-mac.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/start-mac.sh b/start-mac.sh
index 792cade41f1..2b4f1d3ded6 100755
--- a/start-mac.sh
+++ b/start-mac.sh
@@ -1,15 +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'
- ./quick-build.sh
+ ./build.sh
fi
cd sonar-application/target/
-if ! ls sonarqube-*/bin/macosx-universal-64/sonar.sh &> /dev/null; then
+if ! ls sonarqube-*/bin/$OS/sonar.sh &> /dev/null; then
unzip sonarqube-*.zip
fi
cd sonarqube-*
-bin/macosx-universal-64/sonar.sh restart
+bin/$OS/sonar.sh restart
sleep 1
tail -100f logs/sonar.log