install.fairie/home/dot_ssh/run_onchanges_after_link-vagrant-authorized-keys.tmpl

11 lines
377 B
Cheetah
Raw Normal View History

#!/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