Przeglądaj źródła

Merged feature/fix-ultimatebyte-rust into develop

Daniel Gibbs 9 lat temu
rodzic
commit
af877cbfe2

+ 1 - 1
Rust/rustserver

@@ -118,7 +118,7 @@ filesdir="${rootdir}/serverfiles"
 ## Server Specific Directories
 systemdir="${filesdir}"
 executabledir="${filesdir}"
-executable="LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`dirname $0`/RustDedicated_Data/Plugins/x86_64 ./RustDedicated"
+executable="./RustDedicated"
 serveridentitydir="${systemdir}/server/${servicename}"
 servercfg="server.cfg"
 servercfgdefault="server.cfg"

+ 5 - 0
lgsm/functions/core_functions.sh

@@ -362,6 +362,11 @@ functionfile="${FUNCNAME}"
 fn_fetch_function
 }
 
+fix_rust.sh(){
+functionfile="${FUNCNAME}"
+fn_fetch_function
+}
+
 # Info
 
 info_config.sh(){

+ 2 - 0
lgsm/functions/fix.sh

@@ -45,6 +45,8 @@ if [ "${function_selfname}" != "command_install.sh" ]; then
 		fix_ges.sh
 	elif [ "${gamename}" == "Insurgency" ]; then
 		fix_ins.sh
+	elif [ "${gamename}" == "Rust" ]; then
+		fix_rust.sh
 	fi
 fi
 

+ 11 - 0
lgsm/functions/fix_rust.sh

@@ -0,0 +1,11 @@
+#!/bin/bash
+# LGSM fix_rust.sh function
+# Author: Daniel Gibbs
+# Website: https://gameservermanagers.com
+# Description: Resolves startup issue with Rust
+
+local commandname="FIX"
+local commandaction="Fix"
+
+# Fixes: [Raknet] Server Shutting Down (Shutting Down)
+export LD_LIBRARY_PATH="${systemdir}/RustDedicated_Data/Plugins/x86_64"