This commit is contained in:
m0duspwnens
2022-03-17 11:31:16 -04:00
parent 5b9c82a434
commit a896348743

View File

@@ -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