diff --git a/server_manager.sh b/server_manager.sh index 9265ade..b55fbf0 100644 --- a/server_manager.sh +++ b/server_manager.sh @@ -3,63 +3,73 @@ # Script in strict mode set -eu # -------------------------------------------------------------------------- -# Imports +# Imports: +# -------------------------------------------------------------------------- + +# Sourcing the .env file which contains the server information +source .env # -------------------------------------------------------------------------- # Beginning Of the Script by cerberus - -#cat < "${server}/eula.txt" echo "eula=true" >> "${server}/eula.txt" - elif [[ ${eula_answer} == "n" ]]; then + # If the user promts no, the EULA gets created/ overwritten and sets it to false. + # User also gets a reminder that he will not be able to start the server without accepting + # to it + elif [[ ${eula_answer} == "n" ]]; then echo "# ${current_date}" > "${server}/eula.txt" echo "eula=false" >> "${server}/eula.txt" - echo "You will not be able to start the server!" + echo "Caution: You will not be able to start the serverwithout accepting to the EULA." else - echo "Invalid input" + echo "Invalid input!" fi read -p "Press Enter to continue..." break @@ -106,7 +123,6 @@ while true; do break ;; "Exit") - echo "Exiting script. Goodbye!" exit 0 ;; *)