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

add warning again; set "tcp-port"

parent 72e9e862
No related branches found
No related tags found
1 merge request!129Db Profiles
...@@ -179,7 +179,7 @@ function dbdetect.exists(){ ...@@ -179,7 +179,7 @@ function dbdetect.exists(){
for mykey in env params for mykey in env params
do do
value="$( ini.value "$mykey" )" value="$( ini.value "$mykey" )"
value="${value//\{\{tcpport\}\}/$tcpport}" value="${value//\{\{tcp-port\}\}/$tcpport}"
value="${value//\{\{tcp-target\}\}/$tcptarget}" value="${value//\{\{tcp-target\}\}/$tcptarget}"
value="${value//\{\{dbuser\}\}/$dbuser}" value="${value//\{\{dbuser\}\}/$dbuser}"
value="${value//\{\{dbpassword\}\}/$dbpassword}" value="${value//\{\{dbpassword\}\}/$dbpassword}"
...@@ -187,6 +187,8 @@ function dbdetect.exists(){ ...@@ -187,6 +187,8 @@ function dbdetect.exists(){
DBD_PARAMS[$mykey]="$value" DBD_PARAMS[$mykey]="$value"
dbdetect._wd ">>> $mykey = $value" dbdetect._wd ">>> $mykey = $value"
grep -q "{[a-z-]*" <<< "$value" && echo "WARNING: Maybe unresolved variables in [set] > $mykey '$_config'"
done done
dbdetect._wd ">>> files = $myfiles" dbdetect._wd ">>> files = $myfiles"
DBD_PARAMS[files]="$myfiles" DBD_PARAMS[files]="$myfiles"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment