diff options
author | Janos Gyerik <janos.gyerik@sonarsource.com> | 2018-03-15 12:05:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-15 12:05:01 +0100 |
commit | 31436ae379c0680f6502a35ef590afa4ac819e47 (patch) | |
tree | cd65bdcc4313d7cf00626256246d944de7afc434 /scripts/patches/postgres.sh | |
parent | 8ab2074c40707cec61b1fecbdf7eb6a23881161c (diff) | |
download | sonarqube-31436ae379c0680f6502a35ef590afa4ac819e47.tar.gz sonarqube-31436ae379c0680f6502a35ef590afa4ac819e47.zip |
Fix minor safety issues in built-in patches (#3155)
* Add shebang line for all patches
* Properly double-quote variables used on the command line
* Use different debug port for debug CE and Web
* Add double-quotes around long -agentlib option too
Diffstat (limited to 'scripts/patches/postgres.sh')
-rwxr-xr-x | scripts/patches/postgres.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/patches/postgres.sh b/scripts/patches/postgres.sh index 0f3b10559ac..5465c458468 100755 --- a/scripts/patches/postgres.sh +++ b/scripts/patches/postgres.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env bash + set -euo pipefail source scripts/property_utils.sh @@ -5,6 +7,6 @@ source scripts/property_utils.sh SQ_HOME=$1 echo "configuring postgres" -set_property sonar.jdbc.url jdbc:postgresql://localhost:5432/sonarqube $SQ_HOME/conf/sonar.properties -set_property sonar.jdbc.username sonarqube $SQ_HOME/conf/sonar.properties -set_property sonar.jdbc.password sonarqube $SQ_HOME/conf/sonar.properties +set_property sonar.jdbc.url jdbc:postgresql://localhost:5432/sonarqube "$SQ_HOME/conf/sonar.properties" +set_property sonar.jdbc.username sonarqube "$SQ_HOME/conf/sonar.properties" +set_property sonar.jdbc.password sonarqube "$SQ_HOME/conf/sonar.properties" |