Skip to content
Snippets Groups Projects

Db Profiles

8 files
+ 12
13
Compare changes
  • Side-by-side
  • Inline

Files

+ 3
4
@@ -99,7 +99,7 @@ function dbdetect.exists(){
ini.set "$_config" "detect"
# --- check tcp
local tcpport; tcpport=$( ini.value "tcp" )
local tcpport; tcpport=$( ini.value "tcp-port" )
if [ -n "$tcpport" ]; then
local tcptarget; tcptarget=$( ini.value "tcp-target" )
tcptarget=${tcptarget:-localhost}
@@ -176,11 +176,10 @@ function dbdetect.exists(){
local dbuser=$( ini.value "dbuser" )
local dbpassword=$( ini.value "dbpassword" )
for mykey in su env params
for mykey in env params
do
value="$( ini.value "$mykey" )"
value="${value//\{\{tcp\}\}/$tcpport}"
value="${value//\{\{tcpport\}\}/$tcpport}"
value="${value//\{\{tcp-target\}\}/$tcptarget}"
value="${value//\{\{dbuser\}\}/$dbuser}"
value="${value//\{\{dbpassword\}\}/$dbpassword}"
Loading