This is a general-purpose function to ask Yes/No questions in Bash, either with or without a default answer. It keeps repeating the question until it gets a valid answer.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TEXT_RESET='\e[0m' | |
TEXT_YELLOW='\e[0;33m' | |
TEXT_RED_B='\e[1;31m' | |
sudo apt-get update | |
echo -e $TEXT_YELLOW | |
echo 'APT update finished...' | |
echo -e $TEXT_RESET |
This cloud-init config will provision a CS:GO server using LinuxGSM without the need for any manual intervention.
When provisioning a cloud server with providers such as Digital Ocean, you can provide "user data" to help provision cloud servers.
This configuration allows you to make use of the "user data" to automatically provision the CS:GO server.