fixup! feat: opnsense backup

This commit is contained in:
auricom
2025-02-06 21:40:56 +01:00
parent 1e97b99a14
commit 32e9d4b9dd
2 changed files with 9 additions and 3 deletions

View File

@@ -1,7 +1,13 @@
#!/usr/bin/env bash
set -o nounset
# Exit on error, undefined vars, pipe failures, and debug each command
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
# Cleanup temporary files on script exit
trap 'rm -f "/tmp/${config_filename}"' EXIT
config_filename="$(date "+%Y%m%d-%H%M%S").xml"