Skip to content
Snippets Groups Projects

Db Profiles

1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -162,7 +162,7 @@ function dbdetect.exists(){
for mykey in su env params
do
value="$( ini.value "$mykey" )"
value="${value//\{\{tcp-port\}\}/$tcpport}"
value="${value//\{\{tcp\}\}/$tcpport}"
value="${value//\{\{tcp-target\}\}/$tcptarget}"
value="${value//\{\{dbuser\}\}/$dbuser}"
value="${value//\{\{dbpassword\}\}/$dbpassword}"
@@ -178,7 +178,9 @@ function dbdetect.exists(){
}
# set a profile name
# param string profile name
function dbdetect.setProfile(){
PROFILENAME="${1:-$PROFILENAME}"
dbdetect.exists "${DBD_BASEDIR}/${PROFILENAME}.ini"
}
Loading