|
@@ -866,6 +866,9 @@ function backup_data {
|
866
|
866
|
function restore_data_from_storage {
|
867
|
867
|
restore_type="$1"
|
868
|
868
|
|
|
869
|
+ AllStr=$"all"
|
|
870
|
+ ExitStr=$"Exit"
|
|
871
|
+
|
869
|
872
|
if [[ $restore_type != "local" ]]; then
|
870
|
873
|
restore_command="${PROJECT_NAME}-restore-remote $remote_domain_name configuration;;"
|
871
|
874
|
else
|
|
@@ -910,7 +913,6 @@ function restore_data_from_storage {
|
910
|
913
|
do
|
911
|
914
|
|
912
|
915
|
app_list=()
|
913
|
|
- AllStr=$"all"
|
914
|
916
|
n=1
|
915
|
917
|
applist="$n $AllStr off"
|
916
|
918
|
n=$[n+1]
|
|
@@ -934,7 +936,6 @@ function restore_data_from_storage {
|
934
|
936
|
app_index=$[app_index+1]
|
935
|
937
|
app_list+=("$app_name")
|
936
|
938
|
done
|
937
|
|
- ExitStr=$"Exit"
|
938
|
939
|
applist="$applist $n $ExitStr on"
|
939
|
940
|
n=$[n+1]
|
940
|
941
|
|
|
@@ -951,14 +952,15 @@ function restore_data_from_storage {
|
951
|
952
|
app_name=$(cat $data)
|
952
|
953
|
|
953
|
954
|
# exit
|
954
|
|
- if [[ $app_name == "$ExitStr" ]]; then
|
|
955
|
+ if [[ "$app_name" == "$ExitStr" ]]; then
|
955
|
956
|
break
|
956
|
957
|
fi
|
957
|
958
|
|
958
|
959
|
clear
|
|
960
|
+ echo $"Selected $app_name"
|
959
|
961
|
|
960
|
962
|
# Restore all
|
961
|
|
- if [[ $app_name == "$AllStr" ]]; then
|
|
963
|
+ if [[ "$app_name" == "$AllStr" ]]; then
|
962
|
964
|
$restore_command
|
963
|
965
|
retcode="$?"
|
964
|
966
|
if [[ "$retcode" != "0" ]]; then
|