You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

run.sh 468B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. if [[ "$OSTYPE" == "darwin"* ]]; then
  3. OS='macosx-universal-64'
  4. else
  5. OS='linux-x86-64'
  6. fi
  7. if ! ls sonar-application/target/sonarqube-*.zip &> /dev/null; then
  8. echo 'Sources are not built'
  9. ./build.sh
  10. fi
  11. cd sonar-application/target/
  12. if ! ls sonarqube-*/bin/$OS/sonar.sh &> /dev/null; then
  13. unzip sonarqube-*.zip
  14. fi
  15. cd sonarqube-*
  16. bin/$OS/sonar.sh restart
  17. echo "sonar.search.http.port=9200" >> conf/sonar.properties
  18. sleep 1
  19. tail -100f logs/sonar.log