réplica de
https://github.com/SonarSource/sonarqube.git
synced 2024-07-28 20:18:04 +02:00
23 líneas
468 B
Bash
Archivo Ejecutable
23 líneas
468 B
Bash
Archivo Ejecutable
#!/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
|
|
echo "sonar.search.http.port=9200" >> conf/sonar.properties
|
|
sleep 1
|
|
tail -100f logs/sonar.log
|