install.fairie/home/dot_ssh/run_onchanges_after_link-vagrant-authorized-keys.tmpl
Brian Zalewski 04d0878327 Update 5 files
- /home/dot_local/bin/executable_install-program
- /home/.chezmoiexternal.toml
- /home/dot_ssh/symlink_authorized_keys.tmpl
- /home/dot_ssh/run_onchanges_after_link-vagrant-authorized-keys.tmpl
- /home/.chezmoiscripts/universal/run_before_1-decrypt-age-key.tmpl
2023-01-05 01:31:03 +00:00

10 lines
377 B
Bash

#!/usr/bin/env bash
{{ includeTemplate "universal/profile" }}
{{ includeTemplate "universal/logg" }}
### Link authorized_keys to authorized_keys.vagrant if username is vagrant
if [ "$USER" == 'vagrant' ]; then
logg info 'Linking authorized_keys.vagrant to authorized_keys in the .ssh folder'
ln -s "$HOME/.ssh/authorized_keys.vagrant" "$HOME/.ssh/authorized_keys"
fi