You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
496 B

echo "$(green_bold "Powering on the Hetzner VPS")"
echo "$(green_bold "===========================")"
echo "$(blue_bold "Loading VPS settings...")"
eval $(yaml_load "$filename")
echo "$(blue_bold "Powering on the VPS...")"
hcloud server poweron $vps_name
echo "$(blue_bold "Waiting 15 seconds...")"
sleep 15
echo "$(blue_bold "Executing the up commands on the VPS...")"
ssh $ssh_user@$ssh_host -p $ssh_port $commands_up
echo "$(green_bold "Power on successful!")"