Update dotfiles/.config/age/run_once_before_decrypt-private-key.sh.tmpl
This commit is contained in:
parent
ed0f23a8df
commit
e445e1a321
1 changed files with 5 additions and 3 deletions
|
@ -5,7 +5,9 @@ if [ ! -f "$HOME/.config/age/headless.txt" ]; then
|
|||
age-keygen > "$HOME/.config/age/headless.txt"
|
||||
fi
|
||||
|
||||
if [ ! -f "$HOME/.config/age/key.txt" ]; then
|
||||
age --decrypt --output "$HOME/.config/age/key.txt" "{{ .chezmoi.sourceDir }}/key.txt.age"
|
||||
chmod 600 "${HOME}/key.txt"
|
||||
if [ -f "{{ .chezmoi.sourceDir }}/key.txt.age" ]; then
|
||||
# TODO
|
||||
logg 'Decrypting'
|
||||
age --decrypt --output "$HOME/.config/age/key.txt" "{{ .chezmoi.sourceDir }}/key.txt.age"
|
||||
chmod 600 "$HOME/.config/age/key.txt"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue