File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -24,16 +24,13 @@ echo "[+] Target name: ${NAME}"
2424
2525
2626echo " [+] Creating new server in rescue mode with a secondary volume..."
27- SERVER=$( scw create --bootscript=rescue --volume=" ${VOLUME_SIZE} " --env=" AUTHORIZED_KEY=${KEY} " --name=" image-writer-${NAME} " 1GB)
27+ SERVER=$( scw run -d --bootscript=rescue --volume=" ${VOLUME_SIZE} " --env=" AUTHORIZED_KEY=${KEY} " --name=" image-writer-${NAME} " 1GB)
2828echo " [+] Server created: ${SERVER} "
2929
3030
3131echo " [+] Booting..."
32- scw start --wait --timeout=600 " ${SERVER} " > /dev/null
33- # IP=$(scw inspect -f .server.public_ip.address "${SERVER}")
34- # echo "[+] SSH is ready (${IP})"
32+ scw exec -w " ${SERVER} " ' uname -a'
3533echo " [+] Server is booted"
36- scw exec " ${SERVER} " ' uname -a'
3734
3835
3936echo " [+] Formating and mounting /dev/nbd1..."
You can’t perform that action at this time.
0 commit comments