aboutsummaryrefslogtreecommitdiffstats
path: root/stop.sh
blob: 056b97401ad299117c1566e059007e373f6a92f2 (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/target/sonarqube-*/bin/$OS/sonar.sh
if [ -f $SONAR_SH ]; then
  sh $SONAR_SH stop
fi