From 07349983158dede9c3b61e66c944d2279480d617 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Wed, 13 Jan 2021 10:39:24 -0500 Subject: [PATCH] [fix] patch_schedule should not be local --- setup/so-whiptail | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/setup/so-whiptail b/setup/so-whiptail index e66cd3ccd..c0f7dba17 100755 --- a/setup/so-whiptail +++ b/setup/so-whiptail @@ -1064,18 +1064,15 @@ whiptail_patch_schedule() { [ -n "$TESTING" ] && return - local patch_schedule patch_schedule=$(whiptail --title "Security Onion Setup" --radiolist \ - "Choose OS patch schedule: \nThis will NOT update Security Onion related tools such as Zeek, Elasticsearch, Kibana, SaltStack, etc." 15 75 5 \ - "Automatic" "Updates installed every 8 hours if available" ON \ - "Manual" "Updates will be installed manually" OFF \ - "Import Schedule" "Import named schedule on following screen" OFF \ - "New Schedule" "Configure and name new schedule on next screen" OFF 3>&1 1>&2 2>&3 ) + "Choose OS patch schedule: \nThis will NOT update Security Onion related tools such as Zeek, Elasticsearch, Kibana, SaltStack, etc." 15 75 5 \ + "Automatic" "Updates installed every 8 hours if available" ON \ + "Manual" "Updates will be installed manually" OFF \ + "Import Schedule" "Import named schedule on following screen" OFF \ + "New Schedule" "Configure and name new schedule on next screen" OFF 3>&1 1>&2 2>&3 ) local exitstatus=$? whiptail_check_exitstatus $exitstatus - - export patch_schedule } whiptail_patch_schedule_import() {