mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-23 22:18:10 +01:00
Set db type from env vars correctly during restore
This commit is contained in:
@@ -351,7 +351,7 @@ EOF
|
|||||||
read -p "$(echo -e ${clg}** ${cdgy}Enter Value \(${cwh}E${cdgy}\) \| \(${cwh}M${cdgy}\) \| \(${cwh}P${cdgy}\) : ${cwh}${coff}) " q_dbtype
|
read -p "$(echo -e ${clg}** ${cdgy}Enter Value \(${cwh}E${cdgy}\) \| \(${cwh}M${cdgy}\) \| \(${cwh}P${cdgy}\) : ${cwh}${coff}) " q_dbtype
|
||||||
case "${q_dbtype,,}" in
|
case "${q_dbtype,,}" in
|
||||||
e* | "" )
|
e* | "" )
|
||||||
r_dbtype=${db_name}
|
r_dbtype=${DB_TYPE}
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
m* )
|
m* )
|
||||||
@@ -398,7 +398,7 @@ EOF
|
|||||||
read -p "$(echo -e ${clg}** ${cdgy}Enter Value \(${cwh}E${cdgy}\) \| \(${cwh}F${cdgy}\) \| \(${cwh}M${cdgy}\) \| \(${cwh}P${cdgy}\) : ${cwh}${coff}) " q_dbtype
|
read -p "$(echo -e ${clg}** ${cdgy}Enter Value \(${cwh}E${cdgy}\) \| \(${cwh}F${cdgy}\) \| \(${cwh}M${cdgy}\) \| \(${cwh}P${cdgy}\) : ${cwh}${coff}) " q_dbtype
|
||||||
case "${q_dbtype,,}" in
|
case "${q_dbtype,,}" in
|
||||||
e* | "" )
|
e* | "" )
|
||||||
r_dbtype=${dbtype}
|
r_dbtype=${DB_TYPE}
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
f* )
|
f* )
|
||||||
|
|||||||
Reference in New Issue
Block a user