From e0dd2bc91b4c94405a43db2aac56562018b51500 Mon Sep 17 00:00:00 2001 From: Rich Date: Tue, 22 Mar 2022 09:07:20 +0100 Subject: [PATCH] Set db type from env vars correctly during restore --- install/usr/local/bin/restore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/usr/local/bin/restore b/install/usr/local/bin/restore index 48dde2d..c24cc49 100755 --- a/install/usr/local/bin/restore +++ b/install/usr/local/bin/restore @@ -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 case "${q_dbtype,,}" in e* | "" ) - r_dbtype=${db_name} + r_dbtype=${DB_TYPE} break ;; 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 case "${q_dbtype,,}" in e* | "" ) - r_dbtype=${dbtype} + r_dbtype=${DB_TYPE} break ;; f* )