]> source.dussan.org Git - sonarqube.git/commitdiff
Fix stop.sh on Linux
authorJulien HENRY <julien.henry@sonarsource.com>
Mon, 3 Nov 2014 10:54:47 +0000 (11:54 +0100)
committerJulien HENRY <julien.henry@sonarsource.com>
Mon, 3 Nov 2014 10:55:30 +0000 (11:55 +0100)
stop.sh

diff --git a/stop.sh b/stop.sh
index cb1fdb41ec48301699e021ca3930de574ad69c75..3ddd22de9c151a1164d5aab49b937f351559144f 100755 (executable)
--- 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