Adds safe-reboot and safe-shutdown, removes all .sh extensions to scripts

This commit is contained in:
2026-05-21 21:09:34 +02:00
parent f806bda21b
commit 9929a7055b
38 changed files with 91 additions and 44 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
set -o errexit -o pipefail -o noclobber -o nounset -o errtrace -o functrace
file="$1"
if [[ ! -f "${file}" ]]; then
echo "File ${file} does not exist"
exit 1
fi
while read -r line; do
secret="${line%%=*}"
value="${line#*=}"
echo "Adding secret ${secret}"
printf '%s' "${value}" | podman secret create "${secret}" -
done < "${file}"
rm -f "${file}"