create script

This commit is contained in:
CerberusV1
2024-10-12 15:58:10 +02:00
parent 9c4392a25f
commit 3d9992390f

View File

@@ -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 "