Update vmcreate.sh

This commit is contained in:
2025-10-28 16:41:25 +00:00
parent 9fb76ad9d2
commit acb8c88d1a

View File

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