aboutsummaryrefslogtreecommitdiffstats
path: root/stop.sh
diff options
context:
space:
mode:
Diffstat (limited to 'stop.sh')
-rwxr-xr-xstop.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/stop.sh b/stop.sh
index cb1fdb41ec4..3ddd22de9c1 100755
--- a/stop.sh
+++ b/stop.sh
@@ -2,4 +2,10 @@
# Shortcut to stop server. It must be already built.
-sh sonar-application/target/sonarqube-*/bin/macosx-universal-64/sonar.sh stop
+if [[ "$OSTYPE" == "darwin"* ]]; then
+ OS='macosx-universal-64'
+else
+ OS='linux-x86-64'
+fi
+
+sh sonar-application/target/sonarqube-*/bin/$OS/sonar.sh stop