mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-01-31 12:23:55 +01:00
[refactor] Use 0/1 for MASTERUPDATES variable
This commit is contained in:
@@ -942,6 +942,12 @@ whiptail_master_updates() {
|
||||
"MASTER" "Master node is proxy for OS/Docker updates." ON \
|
||||
"OPEN" "Each node connect to the Internet for updates" OFF 3>&1 1>&2 2>&3 )
|
||||
|
||||
if [ "$MASTERUPDATES" == "MASTER" ]; then
|
||||
MASTERUPDATES=1
|
||||
else
|
||||
MASTERUPDATES=0
|
||||
fi
|
||||
|
||||
local exitstatus=$?
|
||||
whiptail_check_exitstatus $exitstatus
|
||||
|
||||
|
||||
Reference in New Issue
Block a user