Improve post image creation instructions

This commit is contained in:
Bob Mottram 2015-11-25 14:04:48 +00:00
parent 4d61630fb4
commit 5081d46d5a
1 changed files with 20 additions and 2 deletions

View File

@ -232,11 +232,29 @@ echo "
Image was created. Image was created.
You will be able to log into it with: You will be able to log into it with:
"
ssh $USERNAME@$DEFAULT_DOMAIN_NAME -p 2222 if [[ $IMAGE_TYPE != "virtualbox"* && $IMAGE_TYPE != "qemu"* ]]; then
echo " ssh $USERNAME@$DEFAULT_DOMAIN_NAME -p 2222
Password: $PASSWORD Password: $PASSWORD
" "
else
if [[ $IMAGE_TYPE != "qemu"* ]]; then
echo " Username: $USERNAME
Password: $PASSWORD
"
else
if [[ $IMAGE_TYPE != "qemu-x86_64"* && $IMAGE_TYPE != "qemu-amd64"* ]]; then
echo "qemu-system-i386 $(ls ${PROJECT_NAME}*.qcow2)"
else
echo "qemu-system-x86_64 $(ls ${PROJECT_NAME}*.qcow2)"
fi
echo "
Username: $USERNAME
Password: $PASSWORD
"
fi
fi
ls -lh ${PROJECT_NAME}*.img ${PROJECT_NAME}*.sig ${PROJECT_NAME}*.bz2 ${PROJECT_NAME}*.vdi ${PROJECT_NAME}*.qcow2 ls -lh ${PROJECT_NAME}*.img ${PROJECT_NAME}*.sig ${PROJECT_NAME}*.bz2 ${PROJECT_NAME}*.vdi ${PROJECT_NAME}*.qcow2
# record the default login credentials for later use # record the default login credentials for later use