mirror of
https://github.com/CerberusV1/minecraft_deploy.git
synced 2026-01-13 03:23:42 +01:00
install server
This commit is contained in:
26
deploy.sh
26
deploy.sh
@@ -167,4 +167,28 @@ PID=$!
|
|||||||
echo "Download finished."
|
echo "Download finished."
|
||||||
)
|
)
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
|
|
||||||
|
# --------------------------------------------------------
|
||||||
|
# Installing Server
|
||||||
|
# --------------------------------------------------------
|
||||||
|
echo "Installing Server"
|
||||||
|
cd ${server_dir}
|
||||||
|
sleep 1
|
||||||
|
java -jar forge-${mc_forge_version}-installer.jar --installServer > /dev/null 2>&1 &
|
||||||
|
|
||||||
|
# Store the PID of the installer process
|
||||||
|
PID=$!
|
||||||
|
|
||||||
|
# Progress monitoring while the server is installing
|
||||||
|
(
|
||||||
|
while kill -0 $PID 2> /dev/null; do
|
||||||
|
echo "Installing server....."
|
||||||
|
sleep 5
|
||||||
|
done
|
||||||
|
echo "Server installation finished."
|
||||||
|
)
|
||||||
|
|
||||||
|
echo "Removing Installer"
|
||||||
|
rm "forge-${mc_forge_version}-installer.jar"
|
||||||
|
|||||||
Reference in New Issue
Block a user