Browse Source

add legacy vars

pull/4174/head
Daniel Gibbs 2 years ago
parent
commit
92ca548c2c
  1. 9
      lgsm/modules/command_dev_details.sh
  2. 14
      lgsm/modules/command_sponsor.sh
  3. 16
      lgsm/modules/core_legacy.sh

9
lgsm/modules/command_dev_details.sh

@ -39,7 +39,11 @@ declare -A server_details=(
['Default Map']="${defaultmap}" ['Default Map']="${defaultmap}"
['Game Mode']="${gamemode}" ['Game Mode']="${gamemode}"
['Game Type']="${gametype}" ['Game Type']="${gametype}"
['HTTP Enabled']="${httpenabled}"
['HTTP IP']="${httpip}"
['HTTP Password']="${httppassword}"
['HTTP Port']="${httpport}" ['HTTP Port']="${httpport}"
['HTTP User']="${httpuser}"
['ip']="${ip}" ['ip']="${ip}"
['LAN Port']="${lanport}" ['LAN Port']="${lanport}"
['Master Port']="${masterport}" ['Master Port']="${masterport}"
@ -57,13 +61,8 @@ declare -A server_details=(
['Shard']="${shard}" ['Shard']="${shard}"
['Sharding']="${sharding}" ['Sharding']="${sharding}"
['Steam Auth Port']="${steamauthport}" ['Steam Auth Port']="${steamauthport}"
['Steam Master Port']="${steammasterport}"
['Telnet IP']="${telnetip}" ['Telnet IP']="${telnetip}"
['Tickrate']="${tickrate}" ['Tickrate']="${tickrate}"
['HTTP Enabled']="${httpenabled}"
['HTTP IP']="${httpip}"
['HTTP Password']="${httppassword}"
['HTTP User']="${httpuser}"
['World Name']="${worldname}" ['World Name']="${worldname}"
['World Type']="${worldtype}" ['World Type']="${worldtype}"
) )

14
lgsm/modules/command_donate.sh → lgsm/modules/command_sponsor.sh

@ -1,13 +1,13 @@
#!/bin/bash #!/bin/bash
# LinuxGSM command_donate.sh module # LinuxGSM command_sponsor.sh module
# Author: Daniel Gibbs # Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib # Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com # Website: https://linuxgsm.com
# Description: Shows ways to donate. # Description: Shows ways to sponsor.
commandname="DONATE" commandname="SPONSOR"
commandaction="Donate" commandaction="Sponsor"
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_firstcommand_set fn_firstcommand_set
fn_print_ascii_logo fn_print_ascii_logo
@ -15,10 +15,10 @@ echo -e "${lightyellow}Support LinuxGSM${default}"
echo -e "=================================" echo -e "================================="
echo -e "" echo -e ""
echo -e "Been using LinuxGSM?" echo -e "Been using LinuxGSM?"
echo -e "Consider donating to support development." echo -e "Consider sponsoring to support development."
echo -e "" echo -e ""
echo -e "* ${lightblue}Patreon:${default} https://linuxgsm.com/patreon"
echo -e "* ${lightblue}GitHub:${default} https://github.com/sponsors/dgibbs64" echo -e "* ${lightblue}GitHub:${default} https://github.com/sponsors/dgibbs64"
echo -e "* ${lightblue}Patreon:${default} https://linuxgsm.com/patreon"
echo -e "* ${lightblue}PayPal:${default} https://linuxgsm.com/paypal" echo -e "* ${lightblue}PayPal:${default} https://linuxgsm.com/paypal"
echo -e "" echo -e ""
echo -e "LinuxGSM est. 2012" echo -e "LinuxGSM est. 2012"

16
lgsm/modules/core_legacy.sh

@ -15,6 +15,22 @@ for legacy_version in "${legacy_versions_array[@]}"; do
fi fi
done done
if [ -n "${webadminuser}" ]; then
httpuser="${webadminuser}"
fi
if [ -n "${webadminpass}" ]; then
httppassword="${webadminpass}"
fi
if [ -n "${webadminport}" ]; then
httpport="${webadminport}"
fi
if [ -n "${webadminip}" ]; then
httpip="${webadminip}"
fi
if [ -z "${serverfiles}" ]; then if [ -z "${serverfiles}" ]; then
serverfiles="${filesdir}" serverfiles="${filesdir}"
fi fi

Loading…
Cancel
Save