Skip to content
Snippets Groups Projects
Commit 5463c926 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update db detector

parent c560568e
No related branches found
No related tags found
1 merge request!129Db Profiles
......@@ -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"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment