mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
[fix] Move is_iso variable assignment up
This commit is contained in:
@@ -67,6 +67,10 @@ while [[ $# -gt 0 ]]; do
|
||||
esac
|
||||
done
|
||||
|
||||
if [[ "$setup_type" == 'iso' ]]; then
|
||||
is_iso=true
|
||||
fi
|
||||
|
||||
if ! [ -f $install_opt_file ] && [ -d /root/manager_setup/securityonion ] && [[ $(pwd) != /root/manager_setup/securityonion/setup ]]; then
|
||||
exec bash /root/manager_setup/securityonion/setup/so-setup "${original_args[@]}"
|
||||
fi
|
||||
@@ -233,11 +237,6 @@ elif [ "$install_type" = 'ANALYST' ]; then
|
||||
is_analyst=true
|
||||
fi
|
||||
|
||||
# Say yes to the dress if its an ISO install
|
||||
if [[ "$setup_type" == 'iso' ]]; then
|
||||
is_iso=true
|
||||
fi
|
||||
|
||||
# Check if this is an airgap install
|
||||
if [[ ( $is_manager || $is_import ) && $is_iso ]]; then
|
||||
whiptail_airgap
|
||||
|
||||
Reference in New Issue
Block a user