Browse Source

refactor: Update script names for Minecraft, Factorio, Jedi Knight 2 and Vintage Story

This commit updates the script names for Minecraft, Factorio, Jedi Knight 2 and Vintage Story. The update includes changes to command_check_update.sh, command_update.sh, core_functions.sh and install_server_files.sh. The new script names are update_mc.sh (formerly update_minecraft.sh), update_fctr.sh (formerly update_factorio.sh), update_jk2.sh (formerly update_jediknight2.sh) and update_vints.sh (formerly update_vintagestory.sh).
pull/4298/head
Daniel Gibbs 2 years ago
parent
commit
d483c2a3de
  1. 2
      .github/workflows/update-check.yml
  2. 12
      lgsm/modules/command_check_update.sh
  3. 12
      lgsm/modules/command_update.sh
  4. 12
      lgsm/modules/core_functions.sh
  5. 14
      lgsm/modules/install_server_files.sh
  6. 2
      lgsm/modules/update_fctr.sh
  7. 2
      lgsm/modules/update_mc.sh
  8. 2
      lgsm/modules/update_mcb.sh
  9. 2
      lgsm/modules/update_pmc.sh
  10. 2
      lgsm/modules/update_vints.sh

2
.github/workflows/update-check.yml

@ -5,7 +5,7 @@ on:
push:
concurrency:
group: update-check${{ github.ref_name }}
group: update-check-${{ github.ref_name }}
cancel-in-progress: true
jobs:

12
lgsm/modules/command_check_update.sh

@ -17,19 +17,19 @@ core_logs.sh
if [ "${shortname}" == "ts3" ]; then
update_ts3.sh
elif [ "${shortname}" == "mc" ]; then
update_minecraft.sh
update_mc.sh
elif [ "${shortname}" == "mcb" ]; then
update_minecraft_bedrock.sh
update_mcb.sh
elif [ "${shortname}" == "pmc" ] || [ "${shortname}" == "vpmc" ] || [ "${shortname}" == "wmc" ]; then
update_papermc.sh
update_pmc.sh
elif [ "${shortname}" == "fctr" ]; then
update_factorio.sh
update_fctr.sh
elif [ "${shortname}" == "mta" ]; then
update_mta.sh
elif [ "${shortname}" == "jk2" ]; then
update_jediknight2.sh
update_jk2.sh
elif [ "${shortname}" == "vints" ]; then
update_vintagestory.sh
update_vints.sh
elif [ "${shortname}" == "ut99" ]; then
update_ut99.sh
else

12
lgsm/modules/command_update.sh

@ -18,19 +18,19 @@ check_last_update.sh
if [ "${shortname}" == "ts3" ]; then
update_ts3.sh
elif [ "${shortname}" == "mc" ]; then
update_minecraft.sh
update_mc.sh
elif [ "${shortname}" == "mcb" ]; then
update_minecraft_bedrock.sh
update_mcb.sh
elif [ "${shortname}" == "pmc" ] || [ "${shortname}" == "vpmc" ] || [ "${shortname}" == "wmc" ]; then
update_papermc.sh
update_pmc.sh
elif [ "${shortname}" == "fctr" ]; then
update_factorio.sh
update_fctr.sh
elif [ "${shortname}" == "mta" ]; then
update_mta.sh
elif [ "${shortname}" == "jk2" ]; then
update_jediknight2.sh
update_jk2.sh
elif [ "${shortname}" == "vints" ]; then
update_vintagestory.sh
update_vints.sh
elif [ "${shortname}" == "ut99" ]; then
update_ut99.sh
else

12
lgsm/modules/core_functions.sh

@ -640,17 +640,17 @@ update_ts3.sh() {
fn_fetch_function
}
update_minecraft.sh() {
update_mc.sh() {
functionfile="${FUNCNAME[0]}"
fn_fetch_function
}
update_minecraft_bedrock.sh() {
update_mcb.sh() {
functionfile="${FUNCNAME[0]}"
fn_fetch_function
}
update_papermc.sh() {
update_pmc.sh() {
functionfile="${FUNCNAME[0]}"
fn_fetch_function
}
@ -660,12 +660,12 @@ update_mta.sh() {
fn_fetch_function
}
update_factorio.sh() {
update_fctr.sh() {
functionfile="${FUNCNAME[0]}"
fn_fetch_function
}
update_jediknight2.sh() {
update_jk2.sh() {
functionfile="${FUNCNAME[0]}"
fn_fetch_function
}
@ -675,7 +675,7 @@ update_steamcmd.sh() {
fn_fetch_function
}
update_vintagestory.sh() {
update_vints.sh() {
functionfile="${FUNCNAME[0]}"
fn_fetch_function
}

14
lgsm/modules/install_server_files.sh

@ -220,23 +220,23 @@ if [ "${shortname}" == "ts3" ]; then
update_ts3.sh
elif [ "${shortname}" == "mc" ]; then
install_eula.sh
update_minecraft.sh
update_mc.sh
elif [ "${shortname}" == "mcb" ]; then
update_minecraft_bedrock.sh
update_mcb.sh
elif [ "${shortname}" == "pmc" ]; then
install_eula.sh
update_papermc.sh
update_pmc.sh
elif [ "${shortname}" == "wmc" ] || [ "${shortname}" == "vpmc" ]; then
update_papermc.sh
update_pmc.sh
elif [ "${shortname}" == "mta" ]; then
update_mta.sh
elif [ "${shortname}" == "fctr" ]; then
update_factorio.sh
update_fctr.sh
install_factorio_save.sh
elif [ "${shortname}" == "jk2" ]; then
update_jediknight2.sh
update_jk2.sh
elif [ "${shortname}" == "vints" ]; then
update_vintagestory.sh
update_vints.sh
elif [ "${shortname}" == "ut99" ]; then
fn_install_server_files
update_ut99.sh

2
lgsm/modules/update_fctr.sh

@ -1,5 +1,5 @@
#!/bin/bash
# LinuxGSM update_factorio.sh module
# LinuxGSM update_fctr.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com

2
lgsm/modules/update_mc.sh

@ -1,5 +1,5 @@
#!/bin/bash
# LinuxGSM update_minecraft.sh module
# LinuxGSM update_mc.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com

2
lgsm/modules/update_mcb.sh

@ -1,5 +1,5 @@
#!/bin/bash
# LinuxGSM update_minecraft_bedrock.sh module
# LinuxGSM update_mcb.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com

2
lgsm/modules/update_pmc.sh

@ -1,5 +1,5 @@
#!/bin/bash
# LinuxGSM update_papermc.sh module
# LinuxGSM update_pmc.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com

2
lgsm/modules/update_vints.sh

@ -1,5 +1,5 @@
#!/bin/bash
# LinuxGSM update_vintagestory.sh module
# LinuxGSM update_vints.sh module
# Author: Daniel Gibbs
# Contributors: http://linuxgsm.com/contrib
# Website: https://linuxgsm.com

Loading…
Cancel
Save