From 3d9992390fc700647cbe02e318ce8cee19e5e9d1 Mon Sep 17 00:00:00 2001 From: CerberusV1 Date: Sat, 12 Oct 2024 15:58:10 +0200 Subject: [PATCH] create script --- deploy.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/deploy.sh b/deploy.sh index c343a4b..bd61d90 100755 --- a/deploy.sh +++ b/deploy.sh @@ -158,4 +158,17 @@ rm "forge-${version}-installer.jar" mv "forge-${version}-installer.jar.log" $management_logs rm run.sh +# -------------------------------------------------------- +# Creating Start Script +# -------------------------------------------------------- +# Will be reworked soon. Aim is to create an stattic +# script, server_manager.sh. Version and important information +# from the install script will be passed in a seperate file +# which needs to be sourced by the manager. +echo "Creating Start Script" +touch "${management_dir}/start_server.sh" +echo "#!/bin/bash" > "${management_dir}/start_server.sh" +echo 'tmux new -s minecraft_server 'java -Djava.awt.headless=true @user_jvm_args.txt @libraries/net/minecraftforge/forge/${version}/unix_args.txt "$@"'' >> "${working_dir}/start_server.sh" +chmod +x "${management_dir}/start_server.sh" + echo "You can now find the management script in $management_dir "