aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-start/start.sh
blob: 80bcb9094f4bb0a1acdcaf24214543ca42acc1ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

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

cd target/
if ! ls sonarqube-*/bin/$OS/sonar.sh &> /dev/null; then
  unzip sonarqube-*.zip
fi
cd sonarqube-*
bin/$OS/sonar.sh restart
sleep 3
tail -n1000 -f logs/sonar.log