add run_ script to decrypt age
key
This commit is contained in:
parent
d993e9f25f
commit
8e1c359245
7
run_before_decrypt-private-key.sh.tmpl
Normal file
7
run_before_decrypt-private-key.sh.tmpl
Normal file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -f "${HOME}/.config/chezmoi/key.txt" ]; then
|
||||
mkdir -p "${HOME}/.config/chezmoi"
|
||||
chezmoi age decrypt --output "${HOME}/.config/chezmoi/key.txt" --passphrase "{{ .chezmoi.sourceDir }}/key.txt.age"
|
||||
chmod 600 "${HOME}/.config/chezmoi/key.txt"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user