Update vmcreate.sh

This commit is contained in:
2025-10-28 15:37:01 +00:00
parent 55f63e2bee
commit 5246f9d710

View File

@@ -102,7 +102,7 @@ mksnippet () {
sed -i "s|.*password.*|passwd: ${phash}|" "$snippet" || echo "sedDEBUG 2" sed -i "s|.*password.*|passwd: ${phash}|" "$snippet" || echo "sedDEBUG 2"
fi fi
if [ $pubkey ]; then if [ $pubkey ]; then
sed -i "s|.*ssh-rsa.*| - $(cat ${pubkey})|" "$snippet" || echo "sedDEBUG 3" sed -i 's|.*ssh-rsa.*| - "$(cat ${pubkey})"|' "$snippet" || echo "sedDEBUG 3"
fi fi
echo "Snippet $snippet created" echo "Snippet $snippet created"
} }