mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
prevent so-setup iso from running on ubuntu - https://github.com/Security-Onion-Solutions/securityonion/issues/7601
This commit is contained in:
@@ -70,8 +70,15 @@ while [[ $# -gt 0 ]]; do
|
||||
esac
|
||||
done
|
||||
|
||||
detect_os
|
||||
|
||||
if [[ "$setup_type" == 'iso' ]]; then
|
||||
is_iso=true
|
||||
if [[ "$OS" == 'centos' ]]; then
|
||||
is_iso=true
|
||||
else
|
||||
echo "Only use 'so-setup iso' for an ISO install on CentOS. Please run 'so-setup network' instead."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! [ -f $install_opt_file ] && [ -d /root/manager_setup/securityonion ] && [[ $(pwd) != /root/manager_setup/securityonion/setup ]]; then
|
||||
@@ -117,8 +124,6 @@ progress() {
|
||||
fi
|
||||
}
|
||||
|
||||
detect_os
|
||||
|
||||
if [[ -f automation/$automation && $(basename $automation) == $automation ]]; then
|
||||
echo "Preselecting variable values based on automated setup: $automation" >> $setup_log 2>&1
|
||||
source automation/$automation
|
||||
|
||||
Reference in New Issue
Block a user