mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
desktop network install nongrid
This commit is contained in:
@@ -1883,7 +1883,7 @@ securityonion_repo() {
|
|||||||
if [ -n "$(ls -A /etc/yum.repos.d/ 2>/dev/null)" ]; then
|
if [ -n "$(ls -A /etc/yum.repos.d/ 2>/dev/null)" ]; then
|
||||||
logCmd "mv -v /etc/yum.repos.d/* /root/oldrepos/"
|
logCmd "mv -v /etc/yum.repos.d/* /root/oldrepos/"
|
||||||
fi
|
fi
|
||||||
if [[ ! $is_desktop_grid ]]; then
|
if ! $is_desktop_grid; then
|
||||||
gpg_rpm_import
|
gpg_rpm_import
|
||||||
if [[ ! $is_airgap ]]; then
|
if [[ ! $is_airgap ]]; then
|
||||||
echo "https://repo.securityonion.net/file/so-repo/prod/2.4/oracle/9" > /etc/yum/mirror.txt
|
echo "https://repo.securityonion.net/file/so-repo/prod/2.4/oracle/9" > /etc/yum/mirror.txt
|
||||||
|
|||||||
@@ -333,7 +333,8 @@ if [[ $is_desktop ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! whiptail_desktop_install; then
|
whiptail_desktop_install
|
||||||
|
if ! is_desktop_grid; then
|
||||||
if [[ $is_desktop_iso ]]; then
|
if [[ $is_desktop_iso ]]; then
|
||||||
if whiptail_desktop_nongrid_iso; then
|
if whiptail_desktop_nongrid_iso; then
|
||||||
# Remove setup from auto launching
|
# Remove setup from auto launching
|
||||||
|
|||||||
@@ -58,7 +58,11 @@ whiptail_desktop_install() {
|
|||||||
whiptail --title "$whiptail_title" \
|
whiptail --title "$whiptail_title" \
|
||||||
--yesno "$message" 11 75 --defaultno
|
--yesno "$message" 11 75 --defaultno
|
||||||
|
|
||||||
is_desktop_grid=$?
|
if [ $? -eq 0 ]; then
|
||||||
|
is_desktop_grid=true
|
||||||
|
else
|
||||||
|
is_desktop_grid=false
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user