Skip to content

Commit

Permalink
fix: key.txt is not written to home, but home/.config
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius Zeidler authored and twpayne committed Dec 17, 2023
1 parent 43a4f57 commit db9b4dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $ cat > run_once_before_decrypt-private-key.sh.tmpl <<EOF
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}/key.txt"
chmod 600 "${HOME}/.config/chezmoi/key.txt"
fi
EOF
```
Expand Down

0 comments on commit db9b4dd

Please sign in to comment.