enable executing commands directly on the SUV

This commit is contained in:
Michael Becker 2024-08-31 23:36:52 -04:00
parent 5342e3655d
commit 1874dca708

View File

@ -75,11 +75,18 @@ elif [ "$1" == "shell" ]; then
else
echo "If you are migranting from Vagrant, the password is 'vagrant'"
echo "Use 'ssh-copy-id vagrant@$2.privatesuv.com' to set up asymmetric key login"
echo ""
if [ "$#" == "2" ]; then
# only display the banner if we aren't executing a command
echo "If you are migranting from Vagrant, the password is 'vagrant'"
echo "Use 'ssh-copy-id vagrant@$2.privatesuv.com' to set up asymmetric key login"
echo ""
fi
ssh vagrant@$2.privatesuv.com
MACHINENAME=$2
shift
shift
ssh vagrant@$MACHINENAME.privatesuv.com ${1+"$@"}
fi