get_ssh_pub_key() {
if tty -s ; then
if [[ ! -e ~/.ssh/id_rsa.pub && ! -e ~/.ssh/id_dsa.pub ]] ; then
- echo You have no SSH key associated to this profile
- echo "(This will allow you ssh access into your container)"
- read -p "Generate SSH key at ~/.ssh/id_rsa.pub? (Y/n) " -n 1 -r
+ echo "This user has no SSH key, but a SSH key is required to access the Discourse Docker container."
+ read -p "Generate a SSH key? (Y/n) " -n 1 -r
if [[ $REPLY =~ ^[Nn]$ ]] ; then
echo
echo WARNING: You may not be able to log in to your container.