Update vmcreate.sh
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user