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"
|
age-keygen > "$HOME/.config/age/headless.txt"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "$HOME/.config/age/key.txt" ]; then
|
if [ -f "{{ .chezmoi.sourceDir }}/key.txt.age" ]; then
|
||||||
|
# TODO
|
||||||
|
logg 'Decrypting'
|
||||||
age --decrypt --output "$HOME/.config/age/key.txt" "{{ .chezmoi.sourceDir }}/key.txt.age"
|
age --decrypt --output "$HOME/.config/age/key.txt" "{{ .chezmoi.sourceDir }}/key.txt.age"
|
||||||
chmod 600 "${HOME}/key.txt"
|
chmod 600 "$HOME/.config/age/key.txt"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue