mirror of
https://github.com/CerberusV1/minecraft_deploy.git
synced 2026-01-13 03:23:42 +01:00
create script
This commit is contained in:
13
deploy.sh
13
deploy.sh
@@ -158,4 +158,17 @@ rm "forge-${version}-installer.jar"
|
|||||||
mv "forge-${version}-installer.jar.log" $management_logs
|
mv "forge-${version}-installer.jar.log" $management_logs
|
||||||
rm run.sh
|
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 "
|
echo "You can now find the management script in $management_dir "
|
||||||
|
|||||||
Reference in New Issue
Block a user