summaryrefslogtreecommitdiffstats
path: root/start.sh
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-08-03 15:05:20 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2015-08-06 14:18:35 +0200
commitc31e0667170091488cfdaf1f4b7c576546832e11 (patch)
tree30ba9c4e85c44e32885f8eb85dfa4b0d692e2b23 /start.sh
parent0ddae3998e34e24c5877b784332085a81a1ebe7e (diff)
downloadsonarqube-c31e0667170091488cfdaf1f4b7c576546832e11.tar.gz
sonarqube-c31e0667170091488cfdaf1f4b7c576546832e11.zip
[SCRIPTS] add support for patches to start.sh
use seperate start and stop to avoid unpredictable errors when applying patches on a live SQ instance
Diffstat (limited to 'start.sh')
l---------[-rwxr-xr-x]start.sh37
1 files changed, 1 insertions, 36 deletions
diff --git a/start.sh b/start.sh
index 2c29ef02cbd..35cf7e5364d 100755..120000
--- a/start.sh
+++ b/start.sh
@@ -1,36 +1 @@
-#!/bin/bash
-###############################
-# usage: use -d option to enable remote debugging of the web server on port 5005
-###############################
-
-if [[ "$OSTYPE" == "darwin"* ]]; then
- OS='macosx-universal-64'
- SED_DISABLE_BACKUP=" ''"
-else
- OS='linux-x86-64'
- SED_DISABLE_BACKUP=""
-fi
-
-ls sonar-application/target/sonarqube-*.zip 1> /dev/null 2>&1
-if [ "$?" != "0" ]; then
- echo 'Sources are not built'
- ./build.sh
-fi
-
-cd sonar-application/target/
-ls sonarqube-*/bin/$OS/sonar.sh 1> /dev/null 2>&1
-if [ "$?" != "0" ]; then
- unzip sonarqube-*.zip
-fi
-cd sonarqube-*
-
-if [ "$1" = "-d" ]; then
- echo "enabling debug in conf/sonar.properties, listening on port 5005"
- sed -i $SED_DISABLE_BACKUP '/javaAdditionalOpts/d' conf/sonar.properties
- echo "" >> conf/sonar.properties
- echo "sonar.web.javaAdditionalOpts=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005" >> conf/sonar.properties
-fi
-
-bin/$OS/sonar.sh restart
-sleep 1
-tail -100f logs/sonar.log
+scripts/start.sh \ No newline at end of file