63 changed files with 2686 additions and 2098 deletions
@ -1,9 +1,9 @@ |
|||||
name: "Set Issue Label and Assignee" |
name: "Set Issue Label and Assignee" |
||||
on: |
on: |
||||
issues: |
issues: |
||||
types: [opened] |
types: [opened, edited] |
||||
pull_request: |
pull_request: |
||||
typed: [opened] |
types: [opened, edited] |
||||
|
|
||||
jobs: |
jobs: |
||||
test: |
test: |
||||
@ -12,5 +12,5 @@ jobs: |
|||||
- uses: Naturalclar/[email protected] |
- uses: Naturalclar/[email protected] |
||||
with: |
with: |
||||
title-or-body: "both" |
title-or-body: "both" |
||||
parameters: '[ {"keywords": ["backup"], "labels": ["command: backup"]}, {"keywords": ["console"], "labels": ["command: console"]}, {"keywords": ["command: debug"], "labels": ["command: debug"]}, {"keywords": ["command: details"], "labels": ["command: details"]}, {"keywords": ["fast-dl"], "labels": ["command: fast-dl"]}, {"keywords": ["command: install"], "labels": ["command: install"]}, {"keywords": ["command: mods"], "labels": ["command: mods"]}, {"keywords": ["monitor"], "labels": ["command: monitor"]}, {"keywords": ["command: start"], "labels": ["command: start"]}, {"keywords": ["command: stop"], "labels": ["command: stop"]}, {"keywords": ["command: update-lgsm"], "labels": ["command: update-lgsm"]}, {"keywords": ["update"], "labels": ["command: update"]}, {"keywords": ["validate"], "labels": ["command: validate"]}, {"keywords": ["wipe"], "labels": ["command: wipe"]}, {"keywords": ["CentOS"], "labels": ["distro: CentOS"]}, {"keywords": ["Debian"], "labels": ["distro: Debian"]}, {"keywords": ["Fedora"], "labels": ["distro: Fedora"]}, {"keywords": ["Ubuntu"], "labels": ["distro: Ubuntu"]} ]' |
parameters: '[ {"keywords": ["Server Request"], "labels": ["type: game server request"]}, {"keywords": ["backup"], "labels": ["command: backup"]}, {"keywords": ["console"], "labels": ["command: console"]}, {"keywords": ["command: debug"], "labels": ["command: debug"]}, {"keywords": ["command: details"], "labels": ["command: details"]}, {"keywords": ["fast-dl"], "labels": ["command: fast-dl"]}, {"keywords": ["command: install"], "labels": ["command: install"]}, {"keywords": ["command: mods"], "labels": ["command: mods"]}, {"keywords": ["monitor"], "labels": ["command: monitor"]}, {"keywords": ["command: start"], "labels": ["command: start"]}, {"keywords": ["command: stop"], "labels": ["command: stop"]}, {"keywords": ["command: update-lgsm"], "labels": ["command: update-lgsm"]}, {"keywords": ["update"], "labels": ["command: update"]}, {"keywords": ["validate"], "labels": ["command: validate"]}, {"keywords": ["wipe"], "labels": ["command: wipe"]}, {"keywords": ["CentOS"], "labels": ["distro: CentOS"]}, {"keywords": ["Debian"], "labels": ["distro: Debian"]}, {"keywords": ["Fedora"], "labels": ["distro: Fedora"]}, {"keywords": ["Ubuntu"], "labels": ["distro: Ubuntu"]}, {"keywords": ["alert"], "labels": ["info: alerts"]}, {"keywords": ["dependency"], "labels": ["info: dependency"]}, {"keywords": ["docker"], "labels": ["info: docker"]}, {"keywords": ["steamcmd"], "labels": ["info: steamcmd"]}, {"keywords": ["systemd"], "labels": ["info: systemd"]}, {"keywords": ["tmux"], "labels": ["info: tmux"]}, {"keywords": ["bug"], "labels": ["type: bug"]}, {"keywords": ["feature"], "labels": ["type: feature request"]}, {"keywords": ["refactor"], "labels": ["type: refactor"]}, {"keywords": ["Ark"], "labels": ["game: Ark: Survival Evolved"]}, {"keywords": ["Arma 3"], "labels": ["game: Arma 3"]}, {"keywords": ["Counter-Strike: Global Offensive"], "labels": ["game: Counter-Strike: Global Offensive"]}, {"keywords": ["Minecraft"], "labels": ["game: Minecraft"]}, {"keywords": ["Rust"], "labels": ["game: Rust"]}, {"keywords": ["Valheim"], "labels": ["game: Valheim"]}, {"keywords": ["7 Days to Die"], "labels": ["game: 7 Days to Die"]}]' |
||||
github-token: "${{ secrets.GITHUB_TOKEN }}" |
github-token: "${{ secrets.GITHUB_TOKEN }}" |
||||
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,188 @@ |
|||||
|
################################## |
||||
|
######## Default Settings ######## |
||||
|
################################## |
||||
|
# DO NOT EDIT, ANY CHANGES WILL BE OVERWRITTEN! |
||||
|
# Copy settings from here and use them in either: |
||||
|
# common.cfg - applies settings to every instance. |
||||
|
# [instance].cfg - applies settings to a specific instance. |
||||
|
|
||||
|
#### Game Server Settings #### |
||||
|
|
||||
|
## SteamCMD Login | https://docs.linuxgsm.com/steamcmd#steamcmd-login |
||||
|
steamuser="username" |
||||
|
steampass='password' |
||||
|
|
||||
|
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters |
||||
|
servername="LinuxGSM" |
||||
|
ip="0.0.0.0" |
||||
|
port="7777" |
||||
|
queryport="27015" |
||||
|
customerkey="" |
||||
|
providerkey="" |
||||
|
slots="100" |
||||
|
|
||||
|
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters |
||||
|
startparameters="-log -force_steamclient_link -messaging -NoLiveServer -EnableCheats -backendapiurloverride='backend.last-oasis.com' -identifier=${servername} -port=${port} -CustomerKey=${customerkey} -ProviderKey=${providerkey} -slots=${slots} -QueryPort=${queryport} -OverrideConnectionAddress=${ip}" |
||||
|
|
||||
|
#### LinuxGSM Settings #### |
||||
|
|
||||
|
## LinuxGSM Stats |
||||
|
# Send useful stats to LinuxGSM developers. |
||||
|
# https://docs.linuxgsm.com/configuration/linuxgsm-stats |
||||
|
# (on|off) |
||||
|
stats="off" |
||||
|
|
||||
|
## Notification Alerts |
||||
|
# (on|off) |
||||
|
|
||||
|
# Display IP | https://docs.linuxgsm.com/alerts#display-ip |
||||
|
displayip="" |
||||
|
|
||||
|
# More info | https://docs.linuxgsm.com/alerts#more-info |
||||
|
postalert="off" |
||||
|
|
||||
|
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord |
||||
|
discordalert="off" |
||||
|
discordwebhook="webhook" |
||||
|
|
||||
|
# Email Alerts | https://docs.linuxgsm.com/alerts/email |
||||
|
emailalert="off" |
||||
|
email="[email protected]" |
||||
|
emailfrom="" |
||||
|
|
||||
|
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt |
||||
|
iftttalert="off" |
||||
|
ifttttoken="accesstoken" |
||||
|
iftttevent="linuxgsm_alert" |
||||
|
|
||||
|
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun |
||||
|
mailgunalert="off" |
||||
|
mailgunapiregion="us" |
||||
|
mailguntoken="accesstoken" |
||||
|
mailgundomain="example.com" |
||||
|
mailgunemailfrom="[email protected]" |
||||
|
mailgunemail="[email protected]" |
||||
|
|
||||
|
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet |
||||
|
pushbulletalert="off" |
||||
|
pushbullettoken="accesstoken" |
||||
|
channeltag="" |
||||
|
|
||||
|
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover |
||||
|
pushoveralert="off" |
||||
|
pushovertoken="accesstoken" |
||||
|
pushoveruserkey="userkey" |
||||
|
|
||||
|
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat |
||||
|
rocketchatalert="off" |
||||
|
rocketchatwebhook="webhook" |
||||
|
rocketchattoken="" |
||||
|
|
||||
|
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack |
||||
|
slackalert="off" |
||||
|
slackwebhook="webhook" |
||||
|
|
||||
|
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram |
||||
|
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring". |
||||
|
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help". |
||||
|
telegramapi="api.telegram.org" |
||||
|
telegramalert="off" |
||||
|
telegramtoken="accesstoken" |
||||
|
telegramchatid="" |
||||
|
curlcustomstring="" |
||||
|
|
||||
|
## Updating | https://docs.linuxgsm.com/commands/update |
||||
|
updateonstart="off" |
||||
|
|
||||
|
## Backup | https://docs.linuxgsm.com/commands/backup |
||||
|
maxbackups="4" |
||||
|
maxbackupdays="30" |
||||
|
stoponbackup="on" |
||||
|
|
||||
|
## Logging | https://docs.linuxgsm.com/features/logging |
||||
|
consolelogging="on" |
||||
|
logdays="7" |
||||
|
|
||||
|
## Monitor | https://docs.linuxgsm.com/commands/monitor |
||||
|
# Query delay time |
||||
|
querydelay="1" |
||||
|
|
||||
|
## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors |
||||
|
ansi="on" |
||||
|
|
||||
|
#### Advanced Settings #### |
||||
|
|
||||
|
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time |
||||
|
sleeptime="0.5" |
||||
|
|
||||
|
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd |
||||
|
# Server appid |
||||
|
appid="920720" |
||||
|
steamcmdforcewindows="no" |
||||
|
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch |
||||
|
branch="" |
||||
|
betapassword="" |
||||
|
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server |
||||
|
steammaster="false" |
||||
|
|
||||
|
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode |
||||
|
# 1: tmux kill |
||||
|
# 2: CTRL+c |
||||
|
# 3: quit |
||||
|
# 4: quit 120s |
||||
|
# 5: stop |
||||
|
# 6: q |
||||
|
# 7: exit |
||||
|
# 8: 7 Days to Die |
||||
|
# 9: GoldSrc |
||||
|
# 10: Avorion |
||||
|
# 11: end |
||||
|
stopmode="2" |
||||
|
|
||||
|
## Query mode |
||||
|
# 1: session only |
||||
|
# 2: gamedig (gsquery fallback) |
||||
|
# 3: gamedig |
||||
|
# 4: gsquery |
||||
|
# 5: tcp |
||||
|
querymode="1" |
||||
|
querytype="" |
||||
|
|
||||
|
## Console type |
||||
|
consoleverbose="yes" |
||||
|
consoleinteract="no" |
||||
|
|
||||
|
## Game Server Details |
||||
|
# Do not edit |
||||
|
gamename="Last Oasis" |
||||
|
engine="unreal4" |
||||
|
glibc="2.17" |
||||
|
|
||||
|
#### Directories #### |
||||
|
# Edit with care |
||||
|
|
||||
|
## Game Server Directories |
||||
|
systemdir="${serverfiles}/Mist" |
||||
|
executabledir="${systemdir}/Binaries/Linux" |
||||
|
executable="./MistServer-Linux-Shipping" |
||||
|
servercfgdir="${systemdir}/Saved/Config/LinuxServer" |
||||
|
servercfg="Game.ini" |
||||
|
servercfgdefault="Game.ini" |
||||
|
servercfgfullpath="${servercfgdir}/${servercfg}" |
||||
|
|
||||
|
## Backup Directory |
||||
|
backupdir="${lgsmdir}/backup" |
||||
|
|
||||
|
## Logging Directories |
||||
|
logdir="${rootdir}/log" |
||||
|
gamelogdir="${systemdir}/Saved/Logs" |
||||
|
lgsmlogdir="${logdir}/script" |
||||
|
consolelogdir="${logdir}/console" |
||||
|
lgsmlog="${lgsmlogdir}/${selfname}-script.log" |
||||
|
consolelog="${consolelogdir}/${selfname}-console.log" |
||||
|
alertlog="${lgsmlogdir}/${selfname}-alert.log" |
||||
|
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log" |
||||
|
|
||||
|
## Logs Naming |
||||
|
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log" |
||||
|
consolelogdate="${consolelogdir}/${selfname}-console-$(date '+%Y-%m-%d-%H:%M:%S').log" |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 115 KiB |
Can't render this file because it has a wrong number of fields in line 66.
|
@ -0,0 +1,17 @@ |
|||||
|
#!/bin/bash |
||||
|
# LinuxGSM fix_lo.sh function |
||||
|
# Author: Daniel Gibbs |
||||
|
# Website: https://linuxgsm.com |
||||
|
# Description: Resolves installation issue with Last Oasis |
||||
|
|
||||
|
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
||||
|
|
||||
|
local APPID_FILE=${executabledir}/steam_appid.txt |
||||
|
if [ ! -f "${APPID_FILE}" ]; then |
||||
|
fn_print_information "adding ${APPID_FILE} to ${gamename} server." |
||||
|
fn_sleep_time |
||||
|
echo "903950" > "${APPID_FILE}" |
||||
|
else |
||||
|
fn_print_information "${APPID_FILE} already exists. No action to be taken." |
||||
|
fn_sleep_time |
||||
|
fi |
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -1,327 +0,0 @@ |
|||||
#!/bin/bash |
|
||||
# LinuxGSM info_parms.sh module |
|
||||
# Author: Daniel Gibbs |
|
||||
# Contributors: http://linuxgsm.com/contrib |
|
||||
# Website: https://linuxgsm.com |
|
||||
# Description: If specific parms are not set then this will be displayed in details. |
|
||||
|
|
||||
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
|
||||
|
|
||||
## Examples of filtering to get info from config files |
|
||||
# sed 's/foo//g' - remove foo |
|
||||
# tr -cd '[:digit:]' leave only digits |
|
||||
# tr -d '=\"; ' remove selected charectors =\"; |
|
||||
# grep -v "foo" filter out lines that contain foo |
|
||||
|
|
||||
unavailable="${red}UNAVAILABLE${default}" |
|
||||
zero="${red}0${default}" |
|
||||
|
|
||||
fn_info_parms_ark(){ |
|
||||
port=${port:-"0"} |
|
||||
queryport=${queryport:-"0"} |
|
||||
rconport=${rconport:-"0"} |
|
||||
maxplayers=${maxplayers:-"0"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_barotrauma(){ |
|
||||
port=${port:-"0"} |
|
||||
queryport=${queryport:-"0"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_cod(){ |
|
||||
defaultmap=${defaultmap:-"NOT SET"} |
|
||||
maxplayers=${maxplayers:-"0"} |
|
||||
port=${port:-"0"} |
|
||||
queryport=${port:-"0"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_dst(){ |
|
||||
sharding=${sharding:-"NOT SET"} |
|
||||
master=${master:-"NOT SET"} |
|
||||
shard=${shard:-"NOT SET"} |
|
||||
cluster=${cluster:-"NOT SET"} |
|
||||
cave=${cave:-"NOT SET"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_factorio(){ |
|
||||
port=${port:-"0"} |
|
||||
rconport=${rconport:-"0"} |
|
||||
rconpassword=${rconpassword:-"NOT SET"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_hurtworld(){ |
|
||||
servername=${servername:-"NOT SET"} |
|
||||
port=${port:-"0"} |
|
||||
queryport=${queryport:-"0"} |
|
||||
maxplayers=${maxplayers:-"0"} |
|
||||
defaultmap=${defaultmap:-"NOT SET"} |
|
||||
creativemode=${creativemode:-"NOT SET"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_inss(){ |
|
||||
port=${port:-"0"} |
|
||||
queryport=${queryport:-"0"} |
|
||||
servername=${servername:-"NOT SET"} |
|
||||
serverpassword=${serverpassword:-"NOT SET"} |
|
||||
defaultmap=${defaultmap:-"NOT SET"} |
|
||||
defaultscenario=${defaultscenario:-"NOT SET"} |
|
||||
maxplayers=${maxplayers:-"0"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_jk2(){ |
|
||||
queryport=${port} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_kf2(){ |
|
||||
queryport=${queryport:-"0"} |
|
||||
defaultmap=${defaultmap:-"NOT SET"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_mordhau(){ |
|
||||
port=${port:-"0"} |
|
||||
queryport=${queryport:-"0"} |
|
||||
beaconport=${beaconport:-"0"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_mohaa(){ |
|
||||
port=${port:-"0"} |
|
||||
queryport=${port:-"0"} |
|
||||
defaultmap=${defaultmap:-"NOT SET"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_mom(){ |
|
||||
port=${port:-"7777"} |
|
||||
beaconport=${queryport:-"15000"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_mta(){ |
|
||||
queryport=$((port + 123)) |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_projectzomboid(){ |
|
||||
adminpassword=${adminpassword:-"NOT SET"} |
|
||||
queryport=${port:-"0"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_quakeworld(){ |
|
||||
port=${port:-"0"} |
|
||||
queryport=${port:-"0"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_quake2(){ |
|
||||
port=${port:-"0"} |
|
||||
queryport=${port:-"0"} |
|
||||
defaultmap=${defaultmap:-"NOT SET"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_realvirtuality(){ |
|
||||
port=${port:-"0"} |
|
||||
queryport=$((port + 1)) |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_risingworld(){ |
|
||||
servername=${servername:-"NOT SET"} |
|
||||
port=${port:-"0"} |
|
||||
httpqueryport=$((port - 1)) |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_rtcw(){ |
|
||||
port=${port:-"0"} |
|
||||
queryport="${port:-"0"}" |
|
||||
defaultmap=${defaultmap:-"NOT SET"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_rust(){ |
|
||||
servername=${servername:-"NOT SET"} |
|
||||
port=${port:-"0"} |
|
||||
queryport=${port:-"0"} |
|
||||
rconport=${rconport:-"0"} |
|
||||
rconpassword=${rconpassword:-"NOT SET"} |
|
||||
rconweb=${rconweb:-"NOT SET"} |
|
||||
maxplayers=${maxplayers:-"0"} |
|
||||
saveinterval=${saveinterval:-"0"} |
|
||||
tickrate=${tickrate:-"0"} |
|
||||
# Part of random seed feature. |
|
||||
if [ -z "${seed}" ]; then |
|
||||
if [ ! -f "${datadir}/${selfname}-seed.txt" ]; then |
|
||||
shuf -i 1-2147483647 -n 1 > "${datadir}/${selfname}-seed.txt" |
|
||||
fi |
|
||||
seed=$(cat "${datadir}/${selfname}-seed.txt") |
|
||||
fi |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_samp(){ |
|
||||
queryport=${port:-"0"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_sof2(){ |
|
||||
port=${port:-"0"} |
|
||||
defaultmap=${defaultmap:-"NOT SET"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_source(){ |
|
||||
defaultmap=${defaultmap:-"NOT SET"} |
|
||||
maxplayers=${maxplayers:-"0"} |
|
||||
port=${port:-"0"} |
|
||||
queryport=${port:-"0"} |
|
||||
clientport=${clientport:-"0"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_spark(){ |
|
||||
defaultmap=${defaultmap:-"NOT SET"} |
|
||||
maxplayers=${maxplayers:-"0"} |
|
||||
port=${port:-"0"} |
|
||||
queryport=$((port + 1)) |
|
||||
servername=${servername:-"NOT SET"} |
|
||||
serverpassword=${serverpassword:-"NOT SET"} |
|
||||
webadminuser=${webadminuser:-"NOT SET"} |
|
||||
webadminpass=${webadminpass:-"NOT SET"} |
|
||||
webadminport=${webadminport:-"0"} |
|
||||
mods=${mods:-"NOT SET"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_stickybots(){ |
|
||||
port=${port:-"0"} |
|
||||
queryport=${queryport:-"0"} |
|
||||
servername=${servername:-"NOT SET"} |
|
||||
serverpassword=${serverpassword:-"NOT SET"} |
|
||||
defaultmap=${defaultmap:-"NOT SET"} |
|
||||
maxplayers=${maxplayers:-"0"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_sof2(){ |
|
||||
port=${port:-"0"} |
|
||||
queryport=${port:-"0"} |
|
||||
defaultmap=${defaultmap:-"NOT SET"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_towerunite(){ |
|
||||
port=${port:-"0"} |
|
||||
queryport=${queryport:-"0"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_teeworlds(){ |
|
||||
queryport=${port:-"0"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_pavlovvr(){ |
|
||||
port=${port:-"0"} |
|
||||
queryport=${queryport:-"0"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_unreal(){ |
|
||||
defaultmap=${defaultmap:-"NOT SET"} |
|
||||
queryport=$((port + 1)) |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_unreal2(){ |
|
||||
defaultmap=${defaultmap:-"NOT SET"} |
|
||||
queryport=$((port + 1)) |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_unreal3(){ |
|
||||
port=${port:-"0"} |
|
||||
queryport=${queryport:-"0"} |
|
||||
defaultmap=${defaultmap:-"NOT SET"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_unturned(){ |
|
||||
servername=${selfname:-"NOT SET"} |
|
||||
port=${port:-"0"} |
|
||||
queryport=$((port + 1)) |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_ut(){ |
|
||||
port=${port:-"0"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_vh(){ |
|
||||
port=${port:-"0"} |
|
||||
if [ "${public}" != "0" ]; then |
|
||||
queryport=$((port + 1)) |
|
||||
else |
|
||||
querymode="1" |
|
||||
fi |
|
||||
gameworld=${gameworld:-"NOT SET"} |
|
||||
serverpassword=${serverpassword:-"NOT SET"} |
|
||||
servername=${servername:-"NOT SET"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_wf(){ |
|
||||
port=${port:-"0"} |
|
||||
queryport="${port:-"0"}" |
|
||||
webadminport=${webadminport:-"0"} |
|
||||
} |
|
||||
|
|
||||
fn_info_parms_queryport(){ |
|
||||
queryport="${port:-"0"}" |
|
||||
} |
|
||||
|
|
||||
if [ "${shortname}" == "ark" ]; then |
|
||||
fn_info_parms_ark |
|
||||
elif [ "${shortname}" == "arma3" ]; then |
|
||||
fn_info_parms_realvirtuality |
|
||||
elif [ "${shortname}" == "bt" ]; then |
|
||||
fn_info_parms_barotrauma |
|
||||
elif [ "${shortname}" == "cod" ]||[ "${shortname}" == "coduo" ]||[ "${engine}" == "iw2.0" ]||[ "${engine}" == "iw3.0" ]; then |
|
||||
fn_info_parms_cod |
|
||||
elif [ "${shortname}" == "fctr" ]; then |
|
||||
fn_info_parms_factorio |
|
||||
elif [ "${shortname}" == "inss" ]; then |
|
||||
fn_info_parms_inss |
|
||||
elif [ "${shortname}" == "jk2" ]; then |
|
||||
fn_info_parms_jk2 |
|
||||
elif [ "${shortname}" == "kf2" ]; then |
|
||||
fn_info_parms_kf2 |
|
||||
elif [ "${shortname}" == "mohaa" ]; then |
|
||||
fn_info_parms_mohaa |
|
||||
elif [ "${shortname}" == "mom" ]; then |
|
||||
fn_info_parms_mom |
|
||||
elif [ "${shortname}" == "pz" ]; then |
|
||||
fn_info_parms_projectzomboid |
|
||||
elif [ "${shortname}" == "pvr" ]; then |
|
||||
fn_info_parms_pavlovvr |
|
||||
elif [ "${shortname}" == "qw" ]; then |
|
||||
fn_info_parms_quakeworld |
|
||||
elif [ "${shortname}" == "q2" ]||[ "${shortname}" == "q3" ]; then |
|
||||
fn_info_parms_quake2 |
|
||||
elif [ "${shortname}" == "rtcw" ]; then |
|
||||
fn_info_parms_rtcw |
|
||||
elif [ "${shortname}" == "rust" ]; then |
|
||||
fn_info_parms_rust |
|
||||
elif [ "${shortname}" == "samp" ]; then |
|
||||
fn_info_parms_samp |
|
||||
elif [ "${shortname}" == "rw" ]; then |
|
||||
fn_info_parms_risingworld |
|
||||
elif [ "${shortname}" == "sof2" ]; then |
|
||||
fn_info_parms_sof2 |
|
||||
elif [ "${shortname}" == "sbots" ]; then |
|
||||
fn_info_parms_stickybots |
|
||||
elif [ "${engine}" == "source" ]||[ "${engine}" == "goldsrc" ]; then |
|
||||
fn_info_parms_source |
|
||||
elif [ "${engine}" == "spark" ]; then |
|
||||
fn_info_parms_spark |
|
||||
elif [ "${shortname}" == "tu" ]; then |
|
||||
fn_info_parms_towerunite |
|
||||
elif [ "${shortname}" == "tw" ]; then |
|
||||
fn_info_parms_teeworlds |
|
||||
elif [ "${shortname}" == "vh" ]; then |
|
||||
fn_info_parms_vh |
|
||||
elif [ "${shortname}" == "mh" ]; then |
|
||||
fn_info_parms_mordhau |
|
||||
elif [ "${shortname}" == "mta" ]; then |
|
||||
fn_info_parms_mta |
|
||||
elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then |
|
||||
fn_info_parms_unreal |
|
||||
elif [ "${engine}" == "unreal3" ]; then |
|
||||
fn_info_parms_unreal3 |
|
||||
elif [ "${shortname}" == "unt" ]; then |
|
||||
fn_info_parms_unturned |
|
||||
elif [ "${shortname}" == "ut" ]; then |
|
||||
fn_info_parms_ut |
|
||||
elif [ "${shortname}" == "wf" ]; then |
|
||||
fn_info_parms_wf |
|
||||
# for servers that have a missing queryport from the config |
|
||||
elif [ "${shortname}" == "scpsl" ]||[ "${shortname}" == "scpslsm" ]; then |
|
||||
fn_info_parms_queryport |
|
||||
fi |
|
@ -1,20 +0,0 @@ |
|||||
#!/bin/bash |
|
||||
# LinuxGSM install_modules.sh module |
|
||||
# Author: Daniel Gibbs |
|
||||
# Contributors: http://linuxgsm.com/contrib |
|
||||
# Website: https://linuxgsm.com |
|
||||
# Description: Downloads all modules on install. |
|
||||
|
|
||||
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
|
||||
|
|
||||
echo -e "" |
|
||||
echo -e "${lightyellow}Downloading LinuxGSM Modules${default}" |
|
||||
echo -e "=================================" |
|
||||
|
|
||||
fn_fetch_file "https://github.com/GameServerManagers/LinuxGSM/archive/master.tar.gz" "${tmpdir}" "master.tar.gz" "nochmodx" "norun" "noforce" "nohash" |
|
||||
fn_dl_extract "${tmpdir}" "master.tar.gz" "${tmpdir}" |
|
||||
cp "${tmpdir}/LinuxGSM-master/lgsm/functions"/*.sh "${functionsdir}" |
|
||||
cp "${tmpdir}/LinuxGSM-master/lgsm/functions"/*.py "${functionsdir}" |
|
||||
chmod +x "${functionsdir}"/* |
|
||||
command_update_linuxgsm.sh |
|
||||
fn_firstcommand_reset |
|
Loading…
Reference in new issue