aboutsummaryrefslogtreecommitdiffstats
path: root/stop.sh
blob: e06029e1baf8636ce91e0e2ea79be0f27cea600b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# Shortcut to stop server. It must be already built.

if [[ "$OSTYPE" == "darwin"* ]]; then
  OS='macosx-universal-64'
else
  OS='linux-x86-64'
fi

SONAR_SH=sonar-application/build/distributions/sonarqube-*/bin/$OS/sonar.sh
if [ -f $SONAR_SH ]; then
  sh $SONAR_SH stop
fi