sonarqube/start.sh

22 lines
407 B
Bash
Raw Normal View History

#!/bin/sh
2011-04-19 17:36:14 +02:00
if [[ "$OSTYPE" == "darwin"* ]]; then
OS='macosx-universal-64'
else
OS='linux-x86-64'
fi
2014-05-05 13:04:17 +02:00
if ! ls sonar-application/target/sonarqube-*.zip &> /dev/null; then
echo 'Sources are not built'
./build.sh
2014-05-05 13:04:17 +02:00
fi
2014-05-01 21:07:36 +02:00
cd sonar-application/target/
if ! ls sonarqube-*/bin/$OS/sonar.sh &> /dev/null; then
2014-05-05 13:04:17 +02:00
unzip sonarqube-*.zip
fi
2014-05-05 10:08:28 +02:00
cd sonarqube-*
bin/$OS/sonar.sh restart
sleep 1
tail -100f logs/sonar.log