[fix] Move set_redirect out of sub-shell

This commit is contained in:
William Wernert
2020-12-03 15:10:41 -05:00
parent b5bfad07dc
commit ac85cbc3f1
+6 -5
View File
@@ -437,6 +437,12 @@ catch() {
exit exit
} }
# This block sets REDIRECTIT which is used by a function outside the below subshell
{
set_main_ip;
set_redirect;
} >> $setup_log 2>&1
# Begin install # Begin install
{ {
# Set initial percentage to 0 # Set initial percentage to 0
@@ -490,11 +496,6 @@ catch() {
add_soremote_user_manager >> $setup_log 2>&1 add_soremote_user_manager >> $setup_log 2>&1
fi fi
{
set_main_ip;
set_redirect;
} >> $setup_log 2>&1
host_pillar >> $setup_log 2>&1 host_pillar >> $setup_log 2>&1
if [[ $is_minion || $is_import ]]; then if [[ $is_minion || $is_import ]]; then