X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=rootsshsync;h=668f8a3d7ed931ea2a65130c050b9c7e9326ca66;hb=f91bdcc85d4742254fefc2c9880a0c76dc2a65ed;hp=1a39d463494954d3f9f890a88a058345a86905d6;hpb=e03e99848bc5fbc7ad527513e0aa4b0fc9c4d6fb;p=distro-setup diff --git a/rootsshsync b/rootsshsync index 1a39d46..668f8a3 100755 --- a/rootsshsync +++ b/rootsshsync @@ -33,8 +33,8 @@ if [[ $SUDO_USER ]]; then fi user_ssh_dir=$(eval echo ~$user)/.ssh -if [[ ! -s $user_ssh_dir/config ]]; then - echo missing $user_ssh_dir/config. bad sign. bailing >&2 +if [[ ! -s $user_ssh_dir/authorized_keys ]]; then + echo missing $user_ssh_dir/authorized_keys. bad sign. bailing >&2 exit 1 fi