mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-25 22:17:49 +02:00
[fix] Move set_redirect out of sub-shell
This commit is contained in:
+6
-5
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user