From 550baba73a3e50f39ece1ec0c0dccaff8615196e Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Wed, 14 Feb 2024 13:09:43 -0800 Subject: [PATCH] Move printing configuration to script --- .gitea/workflows/deploy-to-wizard.yml | 4 ++-- wizard/config/show-config.sh | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 wizard/config/show-config.sh diff --git a/.gitea/workflows/deploy-to-wizard.yml b/.gitea/workflows/deploy-to-wizard.yml index 313da4f..3639053 100644 --- a/.gitea/workflows/deploy-to-wizard.yml +++ b/.gitea/workflows/deploy-to-wizard.yml @@ -42,5 +42,5 @@ jobs: username: ${{ vars.SSH_USERNAME_WIZARD }} key: ${{ secrets.SSH_KEY_DEPLOY_TO_WIZARD }} script: | - declare -p - printenv \ No newline at end of file + cd ~/homelab/wizard/config + /bin/vbash show-config.sh \ No newline at end of file diff --git a/wizard/config/show-config.sh b/wizard/config/show-config.sh new file mode 100644 index 0000000..45aed08 --- /dev/null +++ b/wizard/config/show-config.sh @@ -0,0 +1,6 @@ +#!/bin/vbash +source /opt/vyatta/etc/functions/script-template + +run show configuration all | strip-private + +exit \ No newline at end of file