From 0c2557d7ce0fa0a974a71c98df112558439c6bd1 Mon Sep 17 00:00:00 2001 From: CerberusV1 Date: Sun, 27 Oct 2024 12:05:40 +0100 Subject: [PATCH] minor adjustments --- deploy.sh | 9 ++++++++- server_manager.sh | 7 +++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index 345f7f6..bcff701 100755 --- a/deploy.sh +++ b/deploy.sh @@ -62,6 +62,8 @@ echo "find all server files and the management script." echo 'Use "-" or "_" as name seperator!' read -p "Servername: " name + +# Setting directoriy variables working_dir="$HOME/$name" management_dir="$HOME/$name/management" management_logs="$HOME/$name/management/installation_logs" @@ -80,7 +82,7 @@ mkdir $server_dir echo What Modloader should be used? -modloader=("Forge" "Fabric") +modloader=("Forge" "Fabric" "Paper") select opt in "${modloader[@]}" do @@ -93,6 +95,11 @@ do exit 1 break ;; + "Paper") + echo "Paper is not supported yet" + exit 1 + break + ;; *) echo "Invalid selection" ;; diff --git a/server_manager.sh b/server_manager.sh index 4cd3a9a..c4a2b01 100644 --- a/server_manager.sh +++ b/server_manager.sh @@ -46,23 +46,26 @@ while true; do # To check for sessions tmux ls and to reconnect to an existing one tmux a -t session_name tmux new -d -s "${server_name}" "./start_server.sh" # If EULA is not accepted, tells the user to accept the EULA before - elif [[ ${condition} -eq 0 ]]; then + elif [[ ${condition} -eq 0 ]]; then echo "Before starting the server, please accept the EULA" # An case that should only appear if more than just one EULA entry was made. # Either commented or not. This should be easily fixed by accepting the EULA again # since every action in this menu doesn´t matter if agreed or not, the file gets # overwritten # Using "Set EULA" should fix that + break else echo "Something went wrong, please recreate the EULA" + break fi # Error massage if the EULA file does not exist. Using "Set EULA" should fix that else echo "Before starting the server, please accept the EULA" echo "error - missing file "eula.txt"" + break fi # If the user prompts n in the server start menu, he returns back to the main menu - elif [[ ${start_answer} == "n" ]]; then + elif [[ ${start_answer} == "n" ]]; then break # If the user prompts something else than y or n in the server start menu, he returns back to the main menu else