mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 09:42:46 +01:00
[fix] Move is_iso variable assignment up
This commit is contained in:
@@ -67,6 +67,10 @@ while [[ $# -gt 0 ]]; do
|
|||||||
esac
|
esac
|
||||||
done
|
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
|
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[@]}"
|
exec bash /root/manager_setup/securityonion/setup/so-setup "${original_args[@]}"
|
||||||
fi
|
fi
|
||||||
@@ -233,11 +237,6 @@ elif [ "$install_type" = 'ANALYST' ]; then
|
|||||||
is_analyst=true
|
is_analyst=true
|
||||||
fi
|
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
|
# Check if this is an airgap install
|
||||||
if [[ ( $is_manager || $is_import ) && $is_iso ]]; then
|
if [[ ( $is_manager || $is_import ) && $is_iso ]]; then
|
||||||
whiptail_airgap
|
whiptail_airgap
|
||||||
|
|||||||
Reference in New Issue
Block a user