Porównaj commity

...

7 Commity

Autor SHA1 Wiadomość Data
modem7 e9f71e51b5
Merge branch 'master' into s6 2024-03-16 15:42:01 +00:00
modem7 13b0e605ce
Merge pull request #1 from Psycho0verload/s6
Add Secrets for BORG & YOUR
2024-03-16 15:41:24 +00:00
Jonathan Starck 80d11da9bb
Add Secrets for BORG & YOUR
Add Secrets for BORG & YOUR
2024-03-16 16:24:36 +01:00
Grant Bevis c2bf0d6b4f
Merge pull request #307 from borgmatic-collective/1.8.9
1.8.9
2024-03-11 20:52:59 +00:00
Grant Bevis b8b525c5ef
1.8.9
1.8.9
2024-03-11 20:52:33 +00:00
Grant Bevis d337d6dec0
Merge pull request #305 from borgmatic-collective/dependabot/pip/apprise-1.7.3
Bump apprise from 1.7.2 to 1.7.3
2024-03-05 07:00:25 +00:00
dependabot[bot] 60e1c0f68e
Bump apprise from 1.7.2 to 1.7.3
Bumps [apprise](https://github.com/caronc/apprise) from 1.7.2 to 1.7.3.
- [Release notes](https://github.com/caronc/apprise/releases)
- [Commits](https://github.com/caronc/apprise/compare/v1.7.2...v1.7.3)

---
updated-dependencies:
- dependency-name: apprise
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-04 22:52:35 +00:00
1 zmienionych plików z 52 dodań i 0 usunięć

Wyświetl plik

@ -28,6 +28,58 @@ Time Zone: $TZ
-----------------------------------
"
# Enable initial debug logging based on the DEBUG_SECRETS environment variable.
# Logs the initial values of BORG_PASSPHRASE and BORG_PASSPHRASE_FILE.
if [ "${DEBUG_SECRETS}" = "true" ] || [ "${DEBUG_SECRETS}" = "1" ]; then
echo "Before: BORG_PASSPHRASE: ${BORG_PASSPHRASE}"
echo "Before: BORG_PASSPHRASE_FILE: ${BORG_PASSPHRASE_FILE}"
echo "Before: YOUR_PASSPHRASE: ${YOUR_PASSPHRASE}"
echo "Before: YOUR_PASSPHRASE_FILE: ${YOUR_PASSPHRASE_FILE}"
fi
# Loop through all environment variables that start with 'BORG'.
for var_name in $(set | grep -E '^BORG|^YOUR' | awk -F= '{print $1}'); do
# Retrieve the current value of each environment variable.
var_value=$(eval echo \$$var_name)
# Check if the variable's name ends with '_FILE'.
if [[ "$var_name" =~ _FILE$ ]]; then
# Strip the '_FILE' suffix to obtain the corresponding variable name.
original_var_name=${var_name%_FILE}
# Retrieve the value of the original environment variable, if it exists.
original_var_value=$(eval echo \$$original_var_name)
# Ensure the *_FILE variable is valid, and the referenced file exists and is not empty.
if [ -n "$var_value" ] && [ -s "$var_value" ]; then
# Notify user if original variable is being overwritten.
if [ -n "$original_var_value" ]; then
echo "Note: $original_var_name was already set but is being overwritten by $var_name"
fi
# Update the original variable with the content of the file.
export "$original_var_name"=$(cat "$var_value")
echo "Setting $original_var_name from the content of $var_value"
# Unset the *_FILE environment variable.
unset "$var_name"
echo "Unsetting $var_name"
else
# Issue an error if the *_FILE variable is not properly set, or the file does not exist or is empty.
echo "Error: File $var_value does not exist or is empty."
fi
fi
done
# Enable final debug logging based on the DEBUG_SECRETS environment variable.
# Logs the final values of BORG_PASSPHRASE and BORG_PASSPHRASE_FILE.
if [ "${DEBUG_SECRETS}" = "true" ] || [ "${DEBUG_SECRETS}" = "1" ]; then
echo "Before: BORG_PASSPHRASE: ${BORG_PASSPHRASE}"
echo "Before: BORG_PASSPHRASE_FILE: ${BORG_PASSPHRASE_FILE}"
echo "Before: YOUR_PASSPHRASE: ${YOUR_PASSPHRASE}"
echo "Before: YOUR_PASSPHRASE_FILE: ${YOUR_PASSPHRASE_FILE}"
fi
# Disable cron if it's set to disabled.
if [[ "$CRON" =~ ^(false|disabled|off)$ ]]; then
echo "Disabling cron, removing configuration"