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.

start.sh 407B

123456789101112131415161718192021
  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. sleep 1
  18. tail -100f logs/sonar.log