|
@@ -31,7 +31,7 @@ ip="0.0.0.0"
|
|
|
|
|
|
|
|
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
|
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
|
|
|
fn_parms(){
|
|
fn_parms(){
|
|
|
-parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} +host_workshop_collection ${workshopcollectionid} -authkey {workshopauth} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
|
|
|
|
|
|
+parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} +host_workshop_collection ${workshopcollectionid} -authkey ${workshopauth} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#### Advanced Variables ####
|
|
#### Advanced Variables ####
|
|
@@ -727,6 +727,23 @@ sleep 1
|
|
|
echo ""
|
|
echo ""
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+fn_glibcfix(){
|
|
|
|
|
+echo "Applying GLIBC_2.15 fix"
|
|
|
|
|
+echo "================================="
|
|
|
|
|
+sleep 1
|
|
|
|
|
+mkdir -pv "${rootdir}/tmp"
|
|
|
|
|
+echo "Downloading GLIBC_2.15"
|
|
|
|
|
+wget -q http://security.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6_2.15-0ubuntu10.6_i386.deb -O ${rootdir}/tmp/libc6_2.15-0ubuntu10.6_i386.deb
|
|
|
|
|
+echo "Extracting files"
|
|
|
|
|
+dpkg -x ${rootdir}/tmp/libc6_2.15-0ubuntu10.6_i386.deb ${rootdir}/tmp/
|
|
|
|
|
+echo "Copying GLIBC_2.15 files into bin"
|
|
|
|
|
+cp ${rootdir}/tmp/lib/i386-linux-gnu/* ${rootdir}/serverfiles/bin/
|
|
|
|
|
+echo "Removing temporary folder"
|
|
|
|
|
+rm -fr ${rootdir}/tmp/
|
|
|
|
|
+sleep 1
|
|
|
|
|
+echo ""
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
fn_loginstall(){
|
|
fn_loginstall(){
|
|
|
echo "Creating log directorys"
|
|
echo "Creating log directorys"
|
|
|
echo "================================="
|
|
echo "================================="
|
|
@@ -787,6 +804,7 @@ fn_header
|
|
|
fn_steamdl
|
|
fn_steamdl
|
|
|
fn_steaminstall
|
|
fn_steaminstall
|
|
|
fn_steamfix
|
|
fn_steamfix
|
|
|
|
|
+fn_glibcfix
|
|
|
fn_loginstall
|
|
fn_loginstall
|
|
|
fn_gmoddeps
|
|
fn_gmoddeps
|
|
|
echo "Configuring ${gamename} Server"
|
|
echo "Configuring ${gamename} Server"
|
|
@@ -939,4 +957,4 @@ case "$1" in
|
|
|
echo "Usage: $0 {start|stop|restart|update|update-restart|validate|validate-restart|monitor|email-test|details|backup|console|debug|install}"
|
|
echo "Usage: $0 {start|stop|restart|update|update-restart|validate|validate-restart|monitor|email-test|details|backup|console|debug|install}"
|
|
|
exit 1;;
|
|
exit 1;;
|
|
|
esac
|
|
esac
|
|
|
-exit
|
|
|
|
|
|
|
+exit
|