Source secrets directly in script

This commit is contained in:
flyingscorpio@arch-desktop 2020-10-20 21:12:58 +02:00
parent 013ba3f6c7
commit 14d22c69af
2 changed files with 3 additions and 1 deletions

View file

@ -39,6 +39,8 @@ fi
[ "$1" = '-f' ] || stat_cache_file
source /home/*/SetupCockpit/secrets
touch "$cache_file"
# Setting this so the repo does not need to be given on the command line:
BORG_REPO=ssh://flyingscorpio@2px.info:22/~/"$(hostname)".borg

View file

@ -8,5 +8,5 @@ Target = *
[Action]
Description = Borg backup
When = PreTransaction
Exec = /bin/bash 'source /home/flyingscorpio/SetupCockpit/secrets && /home/flyingscorpio/SetupCockpit/borg_backup.sh'
Exec = /bin/bash /home/flyingscorpio/SetupCockpit/borg_backup.sh
Depends = borg