From aab982a82c08094ff1ded6495d184b9a9d9c947e Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Wed, 14 Feb 2024 11:19:29 -0800 Subject: [PATCH] Send source command stdout to /dev/null to prevent leaking secrets --- homelab/wizard/config/configure.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/homelab/wizard/config/configure.sh b/homelab/wizard/config/configure.sh index d6b2fb5e..4a7e864d 100644 --- a/homelab/wizard/config/configure.sh +++ b/homelab/wizard/config/configure.sh @@ -5,33 +5,34 @@ if [ "$(id -g -n)" != 'vyattacfg' ] ; then fi source /opt/vyatta/etc/functions/script-template +source vyos_secrets.env configure echo "===== Configure firewall... =====" { - source firewall.sh + source firewall.sh > /dev/null } || { echo "===== Failed to configure firewall =====" } echo "===== Configure interfaces... =====" { - source interfaces.sh + source interfaces.sh > /dev/null } || { echo "===== Failed to configure interfaces =====" } echo "===== Configure NAT... =====" { - source nat.sh + source nat.sh > /dev/null } || { echo "===== Failed to configure NAT =====" } echo "===== Configure QoS... =====" { - source qos.sh + source qos.sh > /dev/null } || { echo "===== Failed to configure QoS =====" } @@ -39,7 +40,7 @@ echo "===== Configure QoS... =====" echo "===== Configure services... =====" { - source service.sh + source service.sh > /dev/null } || { echo "===== Failed to configure services =====" } @@ -47,12 +48,11 @@ echo "===== Configure services... =====" echo "===== Configure system... =====" { - source system.sh + source system.sh > /dev/null } || { echo "===== Failed to configure system =====" } - compare { # try commit, save