summaryrefslogtreecommitdiffstats
path: root/stop.sh
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-11-03 11:54:47 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2014-11-03 11:55:30 +0100
commitdd8e6c8cb5924e702b3817edc774c6ec19d0d17e (patch)
treeb11285d2c51e41e57b24f33953a460b8e8fe9ad5 /stop.sh
parent89eede7717dd056d314a214afb64a17be98fbc0e (diff)
downloadsonarqube-dd8e6c8cb5924e702b3817edc774c6ec19d0d17e.tar.gz
sonarqube-dd8e6c8cb5924e702b3817edc774c6ec19d0d17e.zip
Fix stop.sh on Linux
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