zrcadlo
https://github.com/SonarSource/sonarqube.git
synchronizováno 2024-07-29 08:17:28 +02:00
22 řádky
407 B
Bash
Spustitelný soubor
22 řádky
407 B
Bash
Spustitelný soubor
#!/bin/sh
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
OS='macosx-universal-64'
|
|
else
|
|
OS='linux-x86-64'
|
|
fi
|
|
|
|
if ! ls sonar-application/target/sonarqube-*.zip &> /dev/null; then
|
|
echo 'Sources are not built'
|
|
./build.sh
|
|
fi
|
|
|
|
cd sonar-application/target/
|
|
if ! ls sonarqube-*/bin/$OS/sonar.sh &> /dev/null; then
|
|
unzip sonarqube-*.zip
|
|
fi
|
|
cd sonarqube-*
|
|
bin/$OS/sonar.sh restart
|
|
sleep 1
|
|
tail -100f logs/sonar.log
|