Source secrets directly in script
This commit is contained in:
parent
013ba3f6c7
commit
14d22c69af
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue