From 7bc55f18200dda23652f8ef3ca5ab86b30e10418 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Fri, 18 Dec 2020 22:15:52 +0000 Subject: [PATCH 1/6] release v20.6.2 --- linuxgsm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linuxgsm.sh b/linuxgsm.sh index 18cd88326..4815e86e3 100755 --- a/linuxgsm.sh +++ b/linuxgsm.sh @@ -20,7 +20,7 @@ if [ -f ".dev-debug" ]; then set -x fi -version="v20.6.1" +version="v20.6.2" shortname="core" gameservername="core" commandname="CORE" From 18dd4f79d84847dcd62fcee078f14bc8cf1b7667 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 28 Dec 2020 16:21:04 +0000 Subject: [PATCH 2/6] Update issue templates and bots Create Lock Threads Action Update lock.yml Update lock.yml Update lock.yml Create top-issues.yml Update top-issues.yml remove old bot configs Create release-drafter.yml Update release-drafter template Update release-drafter.yml Update release-drafter.yml Update release-drafter.yml Create create-release.yml delete release drafter Update create-release.yml Update create-release.yml Update create-release.yml Create release-drafter.ym Update create-release.yml Update create-release.yml Update create-release.yml Update create-release.yml Rename release-drafter.ym to release-drafter.yml Update create-release.yml removed top issues bot --- .../{bug_report.md => bug-report.md} | 6 ++- ...{feature_request.md => feature-request.md} | 5 ++- .github/ISSUE_TEMPLATE/new-server-request.md | 5 ++- .github/lock.yml | 38 ------------------- .github/no-response.yml | 10 ----- .github/release-drafter.yml | 4 +- .github/workflows/create-release.yml | 17 +++++++++ .github/workflows/lock.yml | 21 ++++++++++ 8 files changed, 53 insertions(+), 53 deletions(-) rename .github/ISSUE_TEMPLATE/{bug_report.md => bug-report.md} (93%) rename .github/ISSUE_TEMPLATE/{feature_request.md => feature-request.md} (91%) delete mode 100644 .github/lock.yml delete mode 100644 .github/no-response.yml create mode 100644 .github/workflows/create-release.yml create mode 100644 .github/workflows/lock.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug-report.md similarity index 93% rename from .github/ISSUE_TEMPLATE/bug_report.md rename to .github/ISSUE_TEMPLATE/bug-report.md index d3c1adfbb..31d08d206 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -1,8 +1,12 @@ --- -name: Bug report +name: Bug Report about: Found a bug? Raise a report. +title: "[BUG]" +labels: 'type: bug' +assignees: '' --- + Issues raised here are **ONLY** for: * LinuxGSM bugs. * Feature suggestions. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature-request.md similarity index 91% rename from .github/ISSUE_TEMPLATE/feature_request.md rename to .github/ISSUE_TEMPLATE/feature-request.md index dc51fe40e..8ba27fa9f 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature-request.md @@ -1,6 +1,9 @@ --- -name: Feature request +name: Feature Request about: Suggest an idea for LinuxGSM. +title: "[FEATURE]" +labels: 'type: feature request' +assignees: '' --- diff --git a/.github/ISSUE_TEMPLATE/new-server-request.md b/.github/ISSUE_TEMPLATE/new-server-request.md index ada8638cc..84176741f 100644 --- a/.github/ISSUE_TEMPLATE/new-server-request.md +++ b/.github/ISSUE_TEMPLATE/new-server-request.md @@ -1,6 +1,9 @@ --- -name: New server request +name: New Server Request about: Suggest a new game server to be added. +title: "[Server Request]" +labels: 'type: game server request' +assignees: '' --- diff --git a/.github/lock.yml b/.github/lock.yml deleted file mode 100644 index dd136ecdc..000000000 --- a/.github/lock.yml +++ /dev/null @@ -1,38 +0,0 @@ -# Configuration for Lock Threads - https://github.com/dessant/lock-threads - -# Number of days of inactivity before a closed issue or pull request is locked -daysUntilLock: 365 - -# Skip issues and pull requests created before a given timestamp. Timestamp must -# follow ISO 8601 (`YYYY-MM-DD`). Set to `false` to disable -skipCreatedBefore: false - -# Issues and pull requests with these labels will be ignored. Set to `[]` to disable -exemptLabels: [] - -# Label to add before locking, such as `outdated`. Set to `false` to disable -lockLabel: false - -# Comment to post before locking. Set to `false` to disable -lockComment: > - This thread has been automatically locked since there has not been - any recent activity after it was closed. Please open a new issue for - related bugs. - -# Assign `resolved` as the reason for locking. Set to `false` to disable -setLockReason: false - -# Limit to only `issues` or `pulls` -# only: issues - -# Optionally, specify configuration settings just for `issues` or `pulls` -# issues: -# exemptLabels: -# - help-wanted -# lockLabel: outdated - -# pulls: -# daysUntilLock: 30 - -# Repository to extend settings from -# _extends: repo \ No newline at end of file diff --git a/.github/no-response.yml b/.github/no-response.yml deleted file mode 100644 index a883b161e..000000000 --- a/.github/no-response.yml +++ /dev/null @@ -1,10 +0,0 @@ -# Configuration for probot-no-response - https://github.com/probot/no-response - -# Number of days of inactivity before an Issue is closed for lack of response -daysUntilClose: 60 -# Label requiring a response -responseRequiredLabel: "waiting response" -# Comment to post when closing an Issue for lack of response. Set to `false` to disable -closeComment: > - This issue has been automatically closed because there has been no response - to this issue and is now stale. diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 1387c5e19..27bcee3fb 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,4 +1,4 @@ template: | - ## Changelog + ## What’s Changed - $CHANGES \ No newline at end of file + $CHANGES diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml new file mode 100644 index 000000000..f82cb60d9 --- /dev/null +++ b/.github/workflows/create-release.yml @@ -0,0 +1,17 @@ +name: Release Drafter + +on: + push: + # branches to consider in the event; optional, defaults to all + branches: + - master +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into "master" + - uses: release-drafter/release-drafter@v5 + with: + config-name: release-drafter.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml new file mode 100644 index 000000000..63f0cf2db --- /dev/null +++ b/.github/workflows/lock.yml @@ -0,0 +1,21 @@ +name: 'Lock Threads' + +on: + schedule: + - cron: '0 0 * * *' + +jobs: + lock: + runs-on: ubuntu-latest + steps: + - uses: dessant/lock-threads@v2 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + issue-lock-comment: > + This issue has been automatically locked since there + has not been any recent activity after it was closed. + Please open a new issue for related bugs. + pr-lock-comment: > + This pull request has been automatically locked since there + has not been any recent activity after it was closed. + Please open a new issue for related bugs. From 3fa9376dc5c0d6ba9112b706b9c4fa7801b41ae7 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Fri, 15 Jan 2021 23:49:16 +0000 Subject: [PATCH 3/6] Update git-sync.yml --- .github/workflows/git-sync.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/git-sync.yml b/.github/workflows/git-sync.yml index c058b6d24..a5a827096 100644 --- a/.github/workflows/git-sync.yml +++ b/.github/workflows/git-sync.yml @@ -1,4 +1,4 @@ -name: Backup Repo +name: Github to Bitbucket sync # This action will sync the github repo with a backup bitbucket repo. # This will allow LinuxGSM to use Bitbucket as and alternative download if github fails. on: From d328b6dbbe20b63544c58271cf55359661a27117 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 24 Jan 2021 15:02:10 +0000 Subject: [PATCH 4/6] fix(backup): fix backup not correctly exiting on cancelling backup (#3197) * backup lock file only gets created when compression starts * fix backup not correctly exiting on canceling backup --- lgsm/functions/command_backup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100755 => 100644 lgsm/functions/command_backup.sh diff --git a/lgsm/functions/command_backup.sh b/lgsm/functions/command_backup.sh old mode 100755 new mode 100644 index e778cb8a6..728a19e35 --- a/lgsm/functions/command_backup.sh +++ b/lgsm/functions/command_backup.sh @@ -24,6 +24,8 @@ fn_backup_trap(){ fn_script_log_info "Backup ${backupname}.tar.gz: REMOVED" # Remove lock file. rm -f "${lockdir:?}/backup.lock" + fn_backup_start_server + unset exitbypass core_exit.sh } @@ -252,12 +254,12 @@ fn_backup_start_server(){ } # Run functions. -fn_backup_check_lockfile fn_backup_create_lockfile fn_backup_init fn_backup_stop_server fn_backup_dir fn_backup_migrate_olddir +fn_backup_check_lockfile fn_backup_compression fn_backup_prune fn_backup_start_server From 67e7e6136421823845f6d7bbc20ecb6bf7a1b86e Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 24 Jan 2021 15:10:15 +0000 Subject: [PATCH 5/6] fix: standardise and refactor comment headers (#3198) --- lgsm/functions/README.md | 18 +++++++++--------- lgsm/functions/alert.sh | 3 ++- lgsm/functions/alert_discord.sh | 4 ++-- lgsm/functions/alert_email.sh | 3 ++- lgsm/functions/alert_ifttt.sh | 3 ++- lgsm/functions/alert_mailgun.sh | 3 ++- lgsm/functions/alert_pushbullet.sh | 3 ++- lgsm/functions/alert_pushover.sh | 3 ++- lgsm/functions/alert_rocketchat.sh | 5 +++-- lgsm/functions/alert_slack.sh | 5 +++-- lgsm/functions/alert_telegram.sh | 7 ++++--- lgsm/functions/check.sh | 3 ++- lgsm/functions/check_config.sh | 3 ++- lgsm/functions/check_deps.sh | 3 ++- lgsm/functions/check_executable.sh | 3 ++- lgsm/functions/check_glibc.sh | 3 ++- lgsm/functions/check_ip.sh | 3 ++- lgsm/functions/check_last_update.sh | 3 ++- lgsm/functions/check_logs.sh | 3 ++- lgsm/functions/check_permissions.sh | 2 +- lgsm/functions/check_root.sh | 3 ++- lgsm/functions/check_status.sh | 4 ++-- lgsm/functions/check_steamcmd.sh | 3 ++- lgsm/functions/check_system_dir.sh | 3 ++- lgsm/functions/check_system_requirements.sh | 4 ++-- lgsm/functions/check_tmuxception.sh | 6 +++--- lgsm/functions/check_version.sh | 5 ++++- lgsm/functions/command_backup.sh | 4 ++-- lgsm/functions/command_check_update.sh | 3 ++- lgsm/functions/command_console.sh | 3 ++- lgsm/functions/command_debug.sh | 3 ++- lgsm/functions/command_details.sh | 4 ++-- lgsm/functions/command_dev_clear_functions.sh | 3 ++- lgsm/functions/command_dev_debug.sh | 3 ++- lgsm/functions/command_dev_detect_deps.sh | 3 ++- lgsm/functions/command_dev_detect_glibc.sh | 3 ++- lgsm/functions/command_dev_detect_ldd.sh | 3 ++- lgsm/functions/command_dev_query_raw.sh | 3 ++- lgsm/functions/command_donate.sh | 3 ++- lgsm/functions/command_fastdl.sh | 4 ++-- lgsm/functions/command_install.sh | 4 ++-- .../functions/command_install_resources_mta.sh | 3 ++- lgsm/functions/command_mods_install.sh | 4 ++-- lgsm/functions/command_mods_remove.sh | 4 ++-- lgsm/functions/command_mods_update.sh | 4 ++-- lgsm/functions/command_monitor.sh | 4 ++-- lgsm/functions/command_postdetails.sh | 8 ++++---- lgsm/functions/command_restart.sh | 3 ++- lgsm/functions/command_skeleton.sh | 4 +++- lgsm/functions/command_start.sh | 4 ++-- lgsm/functions/command_stop.sh | 4 ++-- lgsm/functions/command_test_alert.sh | 3 ++- lgsm/functions/command_ts3_server_pass.sh | 4 ++-- lgsm/functions/command_update.sh | 3 ++- lgsm/functions/command_update_linuxgsm.sh | 3 ++- lgsm/functions/command_validate.sh | 3 ++- lgsm/functions/command_wipe.sh | 6 +++--- lgsm/functions/compress_unreal2_maps.sh | 3 ++- lgsm/functions/compress_ut99_maps.sh | 3 ++- lgsm/functions/core_dl.sh | 4 ++-- lgsm/functions/core_exit.sh | 3 ++- lgsm/functions/core_functions.sh | 3 ++- lgsm/functions/core_getopt.sh | 3 ++- lgsm/functions/core_github.sh | 3 ++- lgsm/functions/core_legacy.sh | 3 ++- lgsm/functions/core_logs.sh | 4 ++-- lgsm/functions/core_messages.sh | 4 ++-- lgsm/functions/core_steamcmd.sh | 3 ++- lgsm/functions/core_trap.sh | 3 ++- lgsm/functions/fix.sh | 3 ++- lgsm/functions/fix_ark.sh | 3 ++- lgsm/functions/fix_arma3.sh | 3 ++- lgsm/functions/fix_av.sh | 5 +++-- lgsm/functions/fix_bo.sh | 3 ++- lgsm/functions/fix_cmw.sh | 7 +++++-- lgsm/functions/fix_csgo.sh | 3 ++- lgsm/functions/fix_dst.sh | 3 ++- lgsm/functions/fix_hw.sh | 3 ++- lgsm/functions/fix_ins.sh | 3 ++- lgsm/functions/fix_kf.sh | 3 ++- lgsm/functions/fix_kf2.sh | 3 ++- lgsm/functions/fix_mcb.sh | 3 ++- lgsm/functions/fix_mta.sh | 4 ++-- lgsm/functions/fix_nmrih.sh | 6 ++++-- lgsm/functions/fix_onset.sh | 5 +++-- lgsm/functions/fix_ro.sh | 3 ++- lgsm/functions/fix_rust.sh | 3 ++- lgsm/functions/fix_rw.sh | 3 ++- lgsm/functions/fix_samp.sh | 5 +++-- lgsm/functions/fix_sdtd.sh | 3 ++- lgsm/functions/fix_sfc.sh | 3 ++- lgsm/functions/fix_sof2.sh | 4 +++- lgsm/functions/fix_squad.sh | 7 +++++-- lgsm/functions/fix_st.sh | 3 ++- lgsm/functions/fix_steamcmd.sh | 3 ++- lgsm/functions/fix_terraria.sh | 3 ++- lgsm/functions/fix_tf2.sh | 7 ++++--- lgsm/functions/fix_ts3.sh | 3 ++- lgsm/functions/fix_unt.sh | 3 ++- lgsm/functions/fix_ut.sh | 5 +++-- lgsm/functions/fix_ut2k4.sh | 3 ++- lgsm/functions/fix_ut3.sh | 3 ++- lgsm/functions/fix_wurm.sh | 3 ++- lgsm/functions/fix_zmr.sh | 3 ++- lgsm/functions/info_config.sh | 4 ++-- lgsm/functions/info_distro.sh | 3 ++- lgsm/functions/info_messages.sh | 3 ++- lgsm/functions/info_parms.sh | 3 ++- lgsm/functions/info_stats.sh | 6 +++--- lgsm/functions/install_complete.sh | 3 ++- lgsm/functions/install_config.sh | 3 ++- lgsm/functions/install_dst_token.sh | 5 +++-- lgsm/functions/install_eula.sh | 3 ++- lgsm/functions/install_factorio_save.sh | 7 ++++--- lgsm/functions/install_gslt.sh | 3 ++- lgsm/functions/install_header.sh | 3 ++- lgsm/functions/install_logs.sh | 3 ++- lgsm/functions/install_modules.sh | 7 +++++-- lgsm/functions/install_mta_resources.sh | 6 +++--- lgsm/functions/install_retry.sh | 3 ++- lgsm/functions/install_server_dir.sh | 3 ++- lgsm/functions/install_server_files.sh | 3 ++- lgsm/functions/install_squad_license.sh | 3 ++- lgsm/functions/install_stats.sh | 3 ++- lgsm/functions/install_steamcmd.sh | 3 ++- lgsm/functions/install_ts3db.sh | 4 ++-- lgsm/functions/install_ut2k4_key.sh | 3 ++- lgsm/functions/mods_core.sh | 4 ++-- lgsm/functions/mods_list.sh | 4 ++-- lgsm/functions/query_gamedig.sh | 3 ++- lgsm/functions/query_gsquery.py | 5 +++-- lgsm/functions/update_factorio.sh | 3 ++- lgsm/functions/update_jediknight2.sh | 3 ++- lgsm/functions/update_minecraft.sh | 3 ++- lgsm/functions/update_minecraft_bedrock.sh | 3 ++- lgsm/functions/update_mta.sh | 3 ++- lgsm/functions/update_mumble.sh | 3 ++- lgsm/functions/update_steamcmd.sh | 3 ++- lgsm/functions/update_ts3.sh | 3 ++- lgsm/functions/update_vintagestory.sh | 5 +++-- linuxgsm.sh | 2 +- 141 files changed, 323 insertions(+), 201 deletions(-) diff --git a/lgsm/functions/README.md b/lgsm/functions/README.md index 01de5f0c7..c1c823fac 100755 --- a/lgsm/functions/README.md +++ b/lgsm/functions/README.md @@ -1,16 +1,16 @@ -# Linux Game Server Manager - Functions +# LinuxGSM - Modules -These functions are universal functions that work in all scripts. +These modules are scripts that are called upon by the primary script linuxgsm.sh -## Function Names -Functions have been named to give an idea of what the function does. +## Module Names +Modules have been named to give an idea of what the function does. -* core: Essential functions that will always run first. +* core: Essential modules that will always run first. * command: Primary command function. * check: Runs checks that will either halt on or fix an issue. -* dev: development functions. +* dev: development modules. * fix: Applies a game server specific fix. * info: retrieves information from a source such as config file or the OS. -* install: Functions related to the installer. -* monitor: Functions related to monitor. -* update: Functions that update the game server. +* install: modules related to the installer. +* monitor: modules related to monitor. +* update: modules that update the game server. diff --git a/lgsm/functions/alert.sh b/lgsm/functions/alert.sh index 3a071bee8..45c7bae41 100755 --- a/lgsm/functions/alert.sh +++ b/lgsm/functions/alert.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM alert.sh function +# LinuxGSM alert.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Overall function for managing alerts. diff --git a/lgsm/functions/alert_discord.sh b/lgsm/functions/alert_discord.sh index a8ce373f0..b8467eecc 100755 --- a/lgsm/functions/alert_discord.sh +++ b/lgsm/functions/alert_discord.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM alert_discord.sh function +# LinuxGSM alert_discord.sh module # Author: Daniel Gibbs -# Contributor: faflfama, diamondburned +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Sends Discord alert. diff --git a/lgsm/functions/alert_email.sh b/lgsm/functions/alert_email.sh index 85c3ee9bc..ad90e880f 100755 --- a/lgsm/functions/alert_email.sh +++ b/lgsm/functions/alert_email.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM alert_email.sh function +# LinuxGSM alert_email.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Sends email alert. diff --git a/lgsm/functions/alert_ifttt.sh b/lgsm/functions/alert_ifttt.sh index faef505a5..7f76cfeca 100755 --- a/lgsm/functions/alert_ifttt.sh +++ b/lgsm/functions/alert_ifttt.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM alert_ifttt.sh function +# LinuxGSM alert_ifttt.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Sends IFTTT alert. diff --git a/lgsm/functions/alert_mailgun.sh b/lgsm/functions/alert_mailgun.sh index 5694bd595..4a2955104 100755 --- a/lgsm/functions/alert_mailgun.sh +++ b/lgsm/functions/alert_mailgun.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM alert_mailgun.sh function +# LinuxGSM alert_mailgun.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Sends Mailgun Email alert. diff --git a/lgsm/functions/alert_pushbullet.sh b/lgsm/functions/alert_pushbullet.sh index 42a9b7d5d..4c20e67c3 100755 --- a/lgsm/functions/alert_pushbullet.sh +++ b/lgsm/functions/alert_pushbullet.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM alert_pushbullet.sh function +# LinuxGSM alert_pushbullet.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Sends Pushbullet Messenger alert. diff --git a/lgsm/functions/alert_pushover.sh b/lgsm/functions/alert_pushover.sh index 848a2eea5..b8b866cb8 100755 --- a/lgsm/functions/alert_pushover.sh +++ b/lgsm/functions/alert_pushover.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM alert_pushover.sh function +# LinuxGSM alert_pushover.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Sends Pushover alert. diff --git a/lgsm/functions/alert_rocketchat.sh b/lgsm/functions/alert_rocketchat.sh index e6d4cf5ce..6c492854c 100755 --- a/lgsm/functions/alert_rocketchat.sh +++ b/lgsm/functions/alert_rocketchat.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM alert_rocketchat.sh function -# Author: Alasdair Haig +# LinuxGSM alert_rocketchat.sh module +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Sends Rocketchat alert. diff --git a/lgsm/functions/alert_slack.sh b/lgsm/functions/alert_slack.sh index ede065730..b59cd3439 100755 --- a/lgsm/functions/alert_slack.sh +++ b/lgsm/functions/alert_slack.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM alert_slack.sh function -# Author: Kenneth Lindeof +# LinuxGSM alert_slack.sh module +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Sends Slack alert. diff --git a/lgsm/functions/alert_telegram.sh b/lgsm/functions/alert_telegram.sh index 7b812246c..938f6802a 100755 --- a/lgsm/functions/alert_telegram.sh +++ b/lgsm/functions/alert_telegram.sh @@ -1,7 +1,8 @@ #!/bin/bash -# LinuxGSM alert_telegram.sh function -# Author: Bennet Becker -# Website: https://bytegaming.de +# LinuxGSM alert_telegram.sh module +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib +# Website: https://linuxgsm.com # Description: Sends Telegram Messenger alert. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" diff --git a/lgsm/functions/check.sh b/lgsm/functions/check.sh index 7ce2e9824..523445c5d 100755 --- a/lgsm/functions/check.sh +++ b/lgsm/functions/check.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM check.sh function +# LinuxGSM check.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Overall function for managing checks. # Runs checks that will either halt on or fix an issue. diff --git a/lgsm/functions/check_config.sh b/lgsm/functions/check_config.sh index ce9035744..5b8d51691 100755 --- a/lgsm/functions/check_config.sh +++ b/lgsm/functions/check_config.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM check_config.sh function +# LinuxGSM check_config.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Checks if the server config is missing and warns the user if needed. diff --git a/lgsm/functions/check_deps.sh b/lgsm/functions/check_deps.sh index 9caef4806..3dd58cdd8 100755 --- a/lgsm/functions/check_deps.sh +++ b/lgsm/functions/check_deps.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM check_deps.sh function +# LinuxGSM check_deps.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Checks if required dependencies are installed for LinuxGSM. diff --git a/lgsm/functions/check_executable.sh b/lgsm/functions/check_executable.sh index 8623dc303..252c6c8d2 100755 --- a/lgsm/functions/check_executable.sh +++ b/lgsm/functions/check_executable.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM check_executable.sh function +# LinuxGSM check_executable.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Checks if server executable exists. diff --git a/lgsm/functions/check_glibc.sh b/lgsm/functions/check_glibc.sh index 02f7ad459..b1a959f5b 100755 --- a/lgsm/functions/check_glibc.sh +++ b/lgsm/functions/check_glibc.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM check_glibc.sh function +# LinuxGSM check_glibc.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Checks if the server has the correct Glibc version. diff --git a/lgsm/functions/check_ip.sh b/lgsm/functions/check_ip.sh index a4ddf7ae0..ae1b99b77 100755 --- a/lgsm/functions/check_ip.sh +++ b/lgsm/functions/check_ip.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM check_ip.sh function +# LinuxGSM check_ip.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Automatically identifies the server interface IP. # If multiple interfaces are detected the user will need to manually set using ip="0.0.0.0". diff --git a/lgsm/functions/check_last_update.sh b/lgsm/functions/check_last_update.sh index 99253d749..07e9d3883 100755 --- a/lgsm/functions/check_last_update.sh +++ b/lgsm/functions/check_last_update.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM check_last_update.sh function +# LinuxGSM check_last_update.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Checks lock file to see when last update happened. # Will reboot server if instance not rebooted since update. diff --git a/lgsm/functions/check_logs.sh b/lgsm/functions/check_logs.sh index 694b1678a..b8dad203c 100755 --- a/lgsm/functions/check_logs.sh +++ b/lgsm/functions/check_logs.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM check_logs.sh function +# LinuxGSM check_logs.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Checks if log files exist. diff --git a/lgsm/functions/check_permissions.sh b/lgsm/functions/check_permissions.sh index 7f95f5da7..d4421dba1 100755 --- a/lgsm/functions/check_permissions.sh +++ b/lgsm/functions/check_permissions.sh @@ -1,7 +1,7 @@ #!/bin/bash # LinuxGSM check_permissions.sh # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Checks ownership & permissions of scripts, files and directories. diff --git a/lgsm/functions/check_root.sh b/lgsm/functions/check_root.sh index b6886938f..1eb6309cb 100755 --- a/lgsm/functions/check_root.sh +++ b/lgsm/functions/check_root.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM check_root.sh function +# LinuxGSM check_root.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Checks if the user tried to run the script as root. diff --git a/lgsm/functions/check_status.sh b/lgsm/functions/check_status.sh index 178adcf6b..670669e50 100755 --- a/lgsm/functions/check_status.sh +++ b/lgsm/functions/check_status.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM check_status.sh function +# LinuxGSM check_status.sh module # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Checks the process status of the server. Either online or offline. diff --git a/lgsm/functions/check_steamcmd.sh b/lgsm/functions/check_steamcmd.sh index 9141acd0d..9b84686dc 100755 --- a/lgsm/functions/check_steamcmd.sh +++ b/lgsm/functions/check_steamcmd.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM check_steamcmd.sh function +# LinuxGSM check_steamcmd.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Checks if SteamCMD is installed correctly. diff --git a/lgsm/functions/check_system_dir.sh b/lgsm/functions/check_system_dir.sh index ce7ff5ba5..0a732d6d1 100755 --- a/lgsm/functions/check_system_dir.sh +++ b/lgsm/functions/check_system_dir.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM check_system_dir.sh function +# LinuxGSM check_system_dir.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Checks if systemdir/serverfiles is accessible. diff --git a/lgsm/functions/check_system_requirements.sh b/lgsm/functions/check_system_requirements.sh index 7a8b73de5..758d558a6 100755 --- a/lgsm/functions/check_system_requirements.sh +++ b/lgsm/functions/check_system_requirements.sh @@ -1,9 +1,9 @@ #!/bin/bash # LinuxGSM check_system_requirements.sh # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com -# Description: Checks RAM requirements +# Description: Checks RAM requirements. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" diff --git a/lgsm/functions/check_tmuxception.sh b/lgsm/functions/check_tmuxception.sh index 4f5fd2e29..e11b55861 100755 --- a/lgsm/functions/check_tmuxception.sh +++ b/lgsm/functions/check_tmuxception.sh @@ -1,9 +1,9 @@ #!/bin/bash -# LinuxGSM check_config.sh function +# LinuxGSM check_config.sh module # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com -# Description: Checks if run from tmux or screen +# Description: Checks if run from tmux or screen. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" diff --git a/lgsm/functions/check_version.sh b/lgsm/functions/check_version.sh index 15f0284bb..a0f3d4435 100755 --- a/lgsm/functions/check_version.sh +++ b/lgsm/functions/check_version.sh @@ -1,10 +1,13 @@ #!/bin/bash -# LinuxGSM command_version.sh function +# LinuxGSM command_version.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Will run update-lgsm if gameserver.sh and modules version does not match # this will allow gameserver.sh to update - useful for multi instance servers. +functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" + if [ -n "${modulesversion}" ]&&[ -n "${version}" ]&&[ "${version}" != "${modulesversion}" ]; then exitbypass=1 echo -e "" diff --git a/lgsm/functions/command_backup.sh b/lgsm/functions/command_backup.sh index 728a19e35..e04318c85 100644 --- a/lgsm/functions/command_backup.sh +++ b/lgsm/functions/command_backup.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM command_backup.sh function +# LinuxGSM command_backup.sh module # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Creates a .tar.gz file in the backup directory. diff --git a/lgsm/functions/command_check_update.sh b/lgsm/functions/command_check_update.sh index 5bda55469..9648dd49e 100755 --- a/lgsm/functions/command_check_update.sh +++ b/lgsm/functions/command_check_update.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM command_check_update.sh function +# LinuxGSM command_check_update.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Handles updating of servers. diff --git a/lgsm/functions/command_console.sh b/lgsm/functions/command_console.sh index 0de924ea6..5b84789e6 100755 --- a/lgsm/functions/command_console.sh +++ b/lgsm/functions/command_console.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM command_console.sh function +# LinuxGSM command_console.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Gives access to the server tmux console. diff --git a/lgsm/functions/command_debug.sh b/lgsm/functions/command_debug.sh index 0630b887f..07871ce00 100755 --- a/lgsm/functions/command_debug.sh +++ b/lgsm/functions/command_debug.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM command_debug.sh function +# LinuxGSM command_debug.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Runs the server without tmux and directly from the terminal. diff --git a/lgsm/functions/command_details.sh b/lgsm/functions/command_details.sh index 2db605656..8f2a03a98 100755 --- a/lgsm/functions/command_details.sh +++ b/lgsm/functions/command_details.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM command_details.sh function +# LinuxGSM command_details.sh module # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Displays server information. diff --git a/lgsm/functions/command_dev_clear_functions.sh b/lgsm/functions/command_dev_clear_functions.sh index 96a637c52..87c77515d 100755 --- a/lgsm/functions/command_dev_clear_functions.sh +++ b/lgsm/functions/command_dev_clear_functions.sh @@ -1,6 +1,7 @@ #!/bin/bash -# command_dev_clear_functions.sh function +# LinuxGSM command_dev_clear_functions.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Deletes the contents of the functions dir. diff --git a/lgsm/functions/command_dev_debug.sh b/lgsm/functions/command_dev_debug.sh index e959509cd..957709898 100755 --- a/lgsm/functions/command_dev_debug.sh +++ b/lgsm/functions/command_dev_debug.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM command_dev_debug.sh function +# LinuxGSM command_dev_debug.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Dev only: Enables debugging log to be saved to dev-debug.log. diff --git a/lgsm/functions/command_dev_detect_deps.sh b/lgsm/functions/command_dev_detect_deps.sh index c8271172e..976bf94dc 100755 --- a/lgsm/functions/command_dev_detect_deps.sh +++ b/lgsm/functions/command_dev_detect_deps.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM command_dev_detect_deps.sh function +# LinuxGSM command_dev_detect_deps.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Detects dependencies the server binary requires. diff --git a/lgsm/functions/command_dev_detect_glibc.sh b/lgsm/functions/command_dev_detect_glibc.sh index e538c456e..304d255fd 100755 --- a/lgsm/functions/command_dev_detect_glibc.sh +++ b/lgsm/functions/command_dev_detect_glibc.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM command_dev_detect_glibc.sh function +# LinuxGSM command_dev_detect_glibc.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Automatically detects the version of GLIBC that is required. # Can check a file or directory recursively. diff --git a/lgsm/functions/command_dev_detect_ldd.sh b/lgsm/functions/command_dev_detect_ldd.sh index e6ddfb09f..7d6e942a1 100755 --- a/lgsm/functions/command_dev_detect_ldd.sh +++ b/lgsm/functions/command_dev_detect_ldd.sh @@ -1,6 +1,7 @@ #!/bin/bash -# command_dev_detect_ldd.sh function +# LinuxGSM command_dev_detect_ldd.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Automatically detects required deps using ldd. # Can check a file or directory recursively. diff --git a/lgsm/functions/command_dev_query_raw.sh b/lgsm/functions/command_dev_query_raw.sh index ac1e9f688..306dc681d 100755 --- a/lgsm/functions/command_dev_query_raw.sh +++ b/lgsm/functions/command_dev_query_raw.sh @@ -1,6 +1,7 @@ #!/bin/bash -# command_dev_query_raw.sh function +# LinuxGSM command_dev_query_raw.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Raw gamedig output of the server. diff --git a/lgsm/functions/command_donate.sh b/lgsm/functions/command_donate.sh index 18e6dce5a..f00a4d702 100755 --- a/lgsm/functions/command_donate.sh +++ b/lgsm/functions/command_donate.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM command_donate.sh function +# LinuxGSM command_donate.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Shows ways to donate. diff --git a/lgsm/functions/command_fastdl.sh b/lgsm/functions/command_fastdl.sh index 4f8ebd863..2474ffd47 100755 --- a/lgsm/functions/command_fastdl.sh +++ b/lgsm/functions/command_fastdl.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM command_fastdl.sh function +# LinuxGSM command_fastdl.sh module # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Creates a FastDL directory. diff --git a/lgsm/functions/command_install.sh b/lgsm/functions/command_install.sh index 3e5d27872..e56890b4d 100755 --- a/lgsm/functions/command_install.sh +++ b/lgsm/functions/command_install.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM command_install.sh function +# LinuxGSM command_install.sh module # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Overall function for the installer. diff --git a/lgsm/functions/command_install_resources_mta.sh b/lgsm/functions/command_install_resources_mta.sh index 503948a3c..6800932e1 100755 --- a/lgsm/functions/command_install_resources_mta.sh +++ b/lgsm/functions/command_install_resources_mta.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM command_install_resources_mta.sh function +# LinuxGSM command_install_resources_mta.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Installs the default resources for Multi Theft Auto. diff --git a/lgsm/functions/command_mods_install.sh b/lgsm/functions/command_mods_install.sh index d644e0cf0..a5eaaf83c 100755 --- a/lgsm/functions/command_mods_install.sh +++ b/lgsm/functions/command_mods_install.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM command_mods_install.sh function +# LinuxGSM command_mods_install.sh module # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: List and installs available mods along with mods_list.sh and mods_core.sh. diff --git a/lgsm/functions/command_mods_remove.sh b/lgsm/functions/command_mods_remove.sh index 507251e87..8647a21ed 100755 --- a/lgsm/functions/command_mods_remove.sh +++ b/lgsm/functions/command_mods_remove.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM command_mods_uninstall.sh function +# LinuxGSM command_mods_uninstall.sh module # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Uninstall mods along with mods_list.sh and mods_core.sh. diff --git a/lgsm/functions/command_mods_update.sh b/lgsm/functions/command_mods_update.sh index 9328a493d..50bbf9d67 100755 --- a/lgsm/functions/command_mods_update.sh +++ b/lgsm/functions/command_mods_update.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM command_mods_update.sh function +# LinuxGSM command_mods_update.sh module # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Updates installed mods along with mods_list.sh and mods_core.sh. diff --git a/lgsm/functions/command_monitor.sh b/lgsm/functions/command_monitor.sh index edc101012..2cd07ed58 100755 --- a/lgsm/functions/command_monitor.sh +++ b/lgsm/functions/command_monitor.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM command_monitor.sh function +# LinuxGSM command_monitor.sh module # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Monitors server by checking for running processes # then passes to gamedig and gsquery. diff --git a/lgsm/functions/command_postdetails.sh b/lgsm/functions/command_postdetails.sh index 0f18b12a9..811938380 100755 --- a/lgsm/functions/command_postdetails.sh +++ b/lgsm/functions/command_postdetails.sh @@ -1,9 +1,9 @@ #!/bin/bash -# LinuxGSM command_postdetails.sh function -# Author: CedarLUG -# Contributor: CedarLUG +# LinuxGSM command_postdetails.sh module +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com -# Description: Strips sensitive information out of Details output +# Description: Strips sensitive information out of Details output. commandname="POST-DETAILS" commandaction="Posting details" diff --git a/lgsm/functions/command_restart.sh b/lgsm/functions/command_restart.sh index 9498c618c..47a6b904c 100755 --- a/lgsm/functions/command_restart.sh +++ b/lgsm/functions/command_restart.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM command_restart.sh function +# LinuxGSM command_restart.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Restarts the server. diff --git a/lgsm/functions/command_skeleton.sh b/lgsm/functions/command_skeleton.sh index cb1136915..7b7d67d5f 100644 --- a/lgsm/functions/command_skeleton.sh +++ b/lgsm/functions/command_skeleton.sh @@ -1,9 +1,11 @@ #!/bin/bash -# LinuxGSM command_skeleton.sh function +# LinuxGSM command_skeleton.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Creates an copy of a game servers directorys. +functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" fn_print_dots "Creating skeleton directory" check.sh diff --git a/lgsm/functions/command_start.sh b/lgsm/functions/command_start.sh index f349ec6a1..cc79613fb 100755 --- a/lgsm/functions/command_start.sh +++ b/lgsm/functions/command_start.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM command_start.sh function +# LinuxGSM command_start.sh module # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Starts the server. diff --git a/lgsm/functions/command_stop.sh b/lgsm/functions/command_stop.sh index 6fe06e4ef..f0a0bf92c 100644 --- a/lgsm/functions/command_stop.sh +++ b/lgsm/functions/command_stop.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM command_stop.sh function +# LinuxGSM command_stop.sh module # Author: Daniel Gibbs -# Contributors: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Stops the server. diff --git a/lgsm/functions/command_test_alert.sh b/lgsm/functions/command_test_alert.sh index 625d5c6c2..9397a445c 100755 --- a/lgsm/functions/command_test_alert.sh +++ b/lgsm/functions/command_test_alert.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM command_test_alert.sh function +# LinuxGSM command_test_alert.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Sends a test alert. diff --git a/lgsm/functions/command_ts3_server_pass.sh b/lgsm/functions/command_ts3_server_pass.sh index ff75b71d2..1e227f3de 100755 --- a/lgsm/functions/command_ts3_server_pass.sh +++ b/lgsm/functions/command_ts3_server_pass.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM command_ts3_server_pass.sh function +# LinuxGSM command_ts3_server_pass.sh module # Author: Daniel Gibbs -# Contributor : UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Changes TS3 serveradmin password. diff --git a/lgsm/functions/command_update.sh b/lgsm/functions/command_update.sh index 718f5d490..fdaf9f5a0 100755 --- a/lgsm/functions/command_update.sh +++ b/lgsm/functions/command_update.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM command_update.sh function +# LinuxGSM command_update.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Handles updating of servers. diff --git a/lgsm/functions/command_update_linuxgsm.sh b/lgsm/functions/command_update_linuxgsm.sh index 7e0ec57b6..341b46e0b 100755 --- a/lgsm/functions/command_update_linuxgsm.sh +++ b/lgsm/functions/command_update_linuxgsm.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM command_update_linuxgsm.sh function +# LinuxGSM command_update_linuxgsm.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Deletes the functions dir to allow re-downloading of functions from GitHub. diff --git a/lgsm/functions/command_validate.sh b/lgsm/functions/command_validate.sh index 690a86b43..4c51bacb3 100755 --- a/lgsm/functions/command_validate.sh +++ b/lgsm/functions/command_validate.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM command_validate.sh function +# LinuxGSM command_validate.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Runs a server validation. diff --git a/lgsm/functions/command_wipe.sh b/lgsm/functions/command_wipe.sh index 9fc099fbe..63cb830fb 100755 --- a/lgsm/functions/command_wipe.sh +++ b/lgsm/functions/command_wipe.sh @@ -1,9 +1,9 @@ #!/bin/bash -# LinuxGSM command_backup.sh function +# LinuxGSM command_backup.sh module # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com -# Description: Wipes server data, useful after updates for some games like Rust +# Description: Wipes server data, useful after updates for some games like Rust. commandname="WIPE" commandaction="Wiping" diff --git a/lgsm/functions/compress_unreal2_maps.sh b/lgsm/functions/compress_unreal2_maps.sh index 7169c9612..0c32d3c77 100755 --- a/lgsm/functions/compress_unreal2_maps.sh +++ b/lgsm/functions/compress_unreal2_maps.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM compress_unreal2_maps.sh function +# LinuxGSM compress_unreal2_maps.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Compresses unreal maps. diff --git a/lgsm/functions/compress_ut99_maps.sh b/lgsm/functions/compress_ut99_maps.sh index 3239837a0..9aa074ba9 100755 --- a/lgsm/functions/compress_ut99_maps.sh +++ b/lgsm/functions/compress_ut99_maps.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM compress_ut99_maps.sh function +# LinuxGSM compress_ut99_maps.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Compresses unreal maps. diff --git a/lgsm/functions/core_dl.sh b/lgsm/functions/core_dl.sh index 01d001b2a..b947cbc6d 100755 --- a/lgsm/functions/core_dl.sh +++ b/lgsm/functions/core_dl.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM core_dl.sh function +# LinuxGSM core_dl.sh module # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Deals with all downloads for LinuxGSM. diff --git a/lgsm/functions/core_exit.sh b/lgsm/functions/core_exit.sh index e2b439abd..34379a486 100755 --- a/lgsm/functions/core_exit.sh +++ b/lgsm/functions/core_exit.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM core_exit.sh function +# LinuxGSM core_exit.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Handles exiting of LinuxGSM by running and reporting an exit code. diff --git a/lgsm/functions/core_functions.sh b/lgsm/functions/core_functions.sh index f9e6b3e05..0a0941377 100755 --- a/lgsm/functions/core_functions.sh +++ b/lgsm/functions/core_functions.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM core_functions.sh function +# LinuxGSM core_functions.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Defines all functions to allow download and execution of functions using fn_fetch_function. # This function is called first before any other function. Without this file other functions will not load. diff --git a/lgsm/functions/core_getopt.sh b/lgsm/functions/core_getopt.sh index 5fae3fb9f..b0986024a 100755 --- a/lgsm/functions/core_getopt.sh +++ b/lgsm/functions/core_getopt.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM core_getopt.sh function +# LinuxGSM core_getopt.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: getopt arguments. diff --git a/lgsm/functions/core_github.sh b/lgsm/functions/core_github.sh index a83512b6a..5bd4bd730 100644 --- a/lgsm/functions/core_github.sh +++ b/lgsm/functions/core_github.sh @@ -1,6 +1,7 @@ #!/bin/bash # LinuxGSM core_github.sh function -# Author: Christian Birk +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: core function file for updates via github diff --git a/lgsm/functions/core_legacy.sh b/lgsm/functions/core_legacy.sh index 9c95adcaf..2ea30f5a6 100755 --- a/lgsm/functions/core_legacy.sh +++ b/lgsm/functions/core_legacy.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM core_legacy.sh function +# LinuxGSM core_legacy.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Code for backwards compatability with older versions of LinuxGSM. diff --git a/lgsm/functions/core_logs.sh b/lgsm/functions/core_logs.sh index 00c4d0662..b999cb347 100755 --- a/lgsm/functions/core_logs.sh +++ b/lgsm/functions/core_logs.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM core_logs.sh function +# LinuxGSM core_logs.sh module # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Acts as a log rotator, removing old logs. diff --git a/lgsm/functions/core_messages.sh b/lgsm/functions/core_messages.sh index c467c2a4d..388a64a9d 100755 --- a/lgsm/functions/core_messages.sh +++ b/lgsm/functions/core_messages.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM core_messages.sh function +# LinuxGSM core_messages.sh module # Author: Daniel Gibbs -# Contributor: s-eam +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Defines on-screen messages such as [ OK ] and how script logs look. diff --git a/lgsm/functions/core_steamcmd.sh b/lgsm/functions/core_steamcmd.sh index 389880241..86c71b708 100644 --- a/lgsm/functions/core_steamcmd.sh +++ b/lgsm/functions/core_steamcmd.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM core_steamcmd.sh function +# LinuxGSM core_steamcmd.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Core functions for SteamCMD diff --git a/lgsm/functions/core_trap.sh b/lgsm/functions/core_trap.sh index 769c27c96..a3eaf5675 100755 --- a/lgsm/functions/core_trap.sh +++ b/lgsm/functions/core_trap.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM core_trap.sh function +# LinuxGSM core_trap.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Handles CTRL-C trap to give an exit code. diff --git a/lgsm/functions/fix.sh b/lgsm/functions/fix.sh index 2e2931e41..4418c184f 100755 --- a/lgsm/functions/fix.sh +++ b/lgsm/functions/fix.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix.sh function +# LinuxGSM fix.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Overall function for managing fixes. # Runs functions that will fix an issue. diff --git a/lgsm/functions/fix_ark.sh b/lgsm/functions/fix_ark.sh index 4c4cf3f32..da0097cab 100755 --- a/lgsm/functions/fix_ark.sh +++ b/lgsm/functions/fix_ark.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_ark.sh function +# LinuxGSM fix_ark.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with ARK: Survival Evolved. diff --git a/lgsm/functions/fix_arma3.sh b/lgsm/functions/fix_arma3.sh index f71fcde7b..bdd85af71 100755 --- a/lgsm/functions/fix_arma3.sh +++ b/lgsm/functions/fix_arma3.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_arma3.sh function +# LinuxGSM fix_arma3.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves an issue with ARMA3. diff --git a/lgsm/functions/fix_av.sh b/lgsm/functions/fix_av.sh index 3edf7862b..6aed64f5e 100755 --- a/lgsm/functions/fix_av.sh +++ b/lgsm/functions/fix_av.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_av.sh function -# Author: Christian Birk +# LinuxGSM fix_av.sh module +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves startup issue with Avorion diff --git a/lgsm/functions/fix_bo.sh b/lgsm/functions/fix_bo.sh index 545504f63..453691874 100644 --- a/lgsm/functions/fix_bo.sh +++ b/lgsm/functions/fix_bo.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_hw.sh function +# LinuxGSM fix_hw.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Ballistic Overkill. diff --git a/lgsm/functions/fix_cmw.sh b/lgsm/functions/fix_cmw.sh index 2f517b1b7..192f483e8 100755 --- a/lgsm/functions/fix_cmw.sh +++ b/lgsm/functions/fix_cmw.sh @@ -1,9 +1,12 @@ #!/bin/bash -# LinuxGSM fix_cmw.sh function -# Author: Christian Birk +# LinuxGSM fix_cmw.sh module +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves the issue of the not starting server on linux +functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" + if [ ! -f "${executabledir}/steam_appid.txt" ]; then fixname="steam_appid.txt" fn_fix_msg_start diff --git a/lgsm/functions/fix_csgo.sh b/lgsm/functions/fix_csgo.sh index 6b213d388..be59c42ec 100755 --- a/lgsm/functions/fix_csgo.sh +++ b/lgsm/functions/fix_csgo.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_csgo.sh function +# LinuxGSM fix_csgo.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with CS:GO. diff --git a/lgsm/functions/fix_dst.sh b/lgsm/functions/fix_dst.sh index b203e1cd8..49fce22e3 100755 --- a/lgsm/functions/fix_dst.sh +++ b/lgsm/functions/fix_dst.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_dst.sh function +# LinuxGSM fix_dst.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Don't Starve Together. diff --git a/lgsm/functions/fix_hw.sh b/lgsm/functions/fix_hw.sh index 4fc3dcd0d..af06924db 100755 --- a/lgsm/functions/fix_hw.sh +++ b/lgsm/functions/fix_hw.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_hw.sh function +# LinuxGSM fix_hw.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Hurtworld. diff --git a/lgsm/functions/fix_ins.sh b/lgsm/functions/fix_ins.sh index f41dffbd4..21a979c4c 100755 --- a/lgsm/functions/fix_ins.sh +++ b/lgsm/functions/fix_ins.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_ins.sh function +# LinuxGSM fix_ins.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Insurgency. diff --git a/lgsm/functions/fix_kf.sh b/lgsm/functions/fix_kf.sh index c4a294515..e749a2d27 100755 --- a/lgsm/functions/fix_kf.sh +++ b/lgsm/functions/fix_kf.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_kf.sh function +# LinuxGSM fix_kf.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Killing Floor. diff --git a/lgsm/functions/fix_kf2.sh b/lgsm/functions/fix_kf2.sh index e826dea2a..d9f8c82b4 100755 --- a/lgsm/functions/fix_kf2.sh +++ b/lgsm/functions/fix_kf2.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_kf2.sh function +# LinuxGSM fix_kf2.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Killing Floor 2. diff --git a/lgsm/functions/fix_mcb.sh b/lgsm/functions/fix_mcb.sh index 691647fb7..4768a40cf 100755 --- a/lgsm/functions/fix_mcb.sh +++ b/lgsm/functions/fix_mcb.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_mcb.sh function +# LinuxGSM fix_mcb.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves possible startup issue with Minecraft Bedrock. diff --git a/lgsm/functions/fix_mta.sh b/lgsm/functions/fix_mta.sh index 549101a68..2c92e8d12 100755 --- a/lgsm/functions/fix_mta.sh +++ b/lgsm/functions/fix_mta.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM fix_mta.sh function +# LinuxGSM fix_mta.sh module # Author: Daniel Gibbs -# Contributor: ChaosMTA +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Installs the libmysqlclient for database functions on the server. diff --git a/lgsm/functions/fix_nmrih.sh b/lgsm/functions/fix_nmrih.sh index 2c9d8c743..4bb70c6f9 100755 --- a/lgsm/functions/fix_nmrih.sh +++ b/lgsm/functions/fix_nmrih.sh @@ -1,6 +1,8 @@ #!/bin/bash -# LinuxGSM fix_nmrih.sh function -# Author: Denperidge +# LinuxGSM fix_nmrih.sh module +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib +# Website: https://linuxgsm.com # Description: Create symlinks for renamed No More Room In Hell serverfiles. # Solution from Steam Community post: https://steamcommunity.com/app/224260/discussions/2/1732089092441769414/ diff --git a/lgsm/functions/fix_onset.sh b/lgsm/functions/fix_onset.sh index 630245844..c444c1ae9 100755 --- a/lgsm/functions/fix_onset.sh +++ b/lgsm/functions/fix_onset.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_onset.sh function -# Author: Frédéric C. +# LinuxGSM fix_onset.sh module +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Onset. diff --git a/lgsm/functions/fix_ro.sh b/lgsm/functions/fix_ro.sh index c9254aa64..895c7c2da 100755 --- a/lgsm/functions/fix_ro.sh +++ b/lgsm/functions/fix_ro.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_ro.sh function +# LinuxGSM fix_ro.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Red Orchestra. diff --git a/lgsm/functions/fix_rust.sh b/lgsm/functions/fix_rust.sh index 607af491b..1e62898df 100755 --- a/lgsm/functions/fix_rust.sh +++ b/lgsm/functions/fix_rust.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_rust.sh function +# LinuxGSM fix_rust.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves startup issue with Rust. diff --git a/lgsm/functions/fix_rw.sh b/lgsm/functions/fix_rw.sh index b02ec343e..aef41a703 100755 --- a/lgsm/functions/fix_rw.sh +++ b/lgsm/functions/fix_rw.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_rw.sh function +# LinuxGSM fix_rw.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Rising World. diff --git a/lgsm/functions/fix_samp.sh b/lgsm/functions/fix_samp.sh index b69779019..7a62bd4d1 100644 --- a/lgsm/functions/fix_samp.sh +++ b/lgsm/functions/fix_samp.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_sfc.sh function -# Author: Christian Birk +# LinuxGSM fix_sfc.sh module +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves issue that the default rcon password is not changed diff --git a/lgsm/functions/fix_sdtd.sh b/lgsm/functions/fix_sdtd.sh index 2709102c4..e93db7970 100755 --- a/lgsm/functions/fix_sdtd.sh +++ b/lgsm/functions/fix_sdtd.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_sdtd.sh function +# LinuxGSM fix_sdtd.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with 7 Days to Die. diff --git a/lgsm/functions/fix_sfc.sh b/lgsm/functions/fix_sfc.sh index 874d6eca7..51b95b9d5 100755 --- a/lgsm/functions/fix_sfc.sh +++ b/lgsm/functions/fix_sfc.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_sfc.sh function +# LinuxGSM fix_sfc.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Source Forts Classic. diff --git a/lgsm/functions/fix_sof2.sh b/lgsm/functions/fix_sof2.sh index 51224c8e0..002f42952 100755 --- a/lgsm/functions/fix_sof2.sh +++ b/lgsm/functions/fix_sof2.sh @@ -1,9 +1,11 @@ #!/bin/bash -# LinuxGSM fix_rust.sh function +# LinuxGSM fix_rust.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Soldier of Fortune 2. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" + # Fixes: error while loading shared libraries: libcxa.so.1 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}" diff --git a/lgsm/functions/fix_squad.sh b/lgsm/functions/fix_squad.sh index 8ec84a86f..b1ba1fde2 100644 --- a/lgsm/functions/fix_squad.sh +++ b/lgsm/functions/fix_squad.sh @@ -1,9 +1,12 @@ #!/bin/bash -# LinuxGSM fix_squad.sh function -# Author: Christian Birk +# LinuxGSM fix_squad.sh module +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Squad. +functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" + # As the server base dir changed for the game, we need to migrate the default config from the old to the new location oldservercfg="${serverfiles}/Squad/ServerConfig/${servercfg}" if [ -f "${oldservercfg}" ]&&[ -f "${servercfgfullpath}" ]; then diff --git a/lgsm/functions/fix_st.sh b/lgsm/functions/fix_st.sh index 2495264da..b9fb5b084 100644 --- a/lgsm/functions/fix_st.sh +++ b/lgsm/functions/fix_st.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_rust.sh function +# LinuxGSM fix_rust.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves startup issue with Stationeers. diff --git a/lgsm/functions/fix_steamcmd.sh b/lgsm/functions/fix_steamcmd.sh index 01465b45e..5fb151bad 100755 --- a/lgsm/functions/fix_steamcmd.sh +++ b/lgsm/functions/fix_steamcmd.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_steamcmd.sh function +# LinuxGSM fix_steamcmd.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues related to SteamCMD. diff --git a/lgsm/functions/fix_terraria.sh b/lgsm/functions/fix_terraria.sh index 712416bd8..7758fdad9 100755 --- a/lgsm/functions/fix_terraria.sh +++ b/lgsm/functions/fix_terraria.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_terraria.sh function +# LinuxGSM fix_terraria.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves an issue with Terraria. diff --git a/lgsm/functions/fix_tf2.sh b/lgsm/functions/fix_tf2.sh index 59b841226..27b35a0d2 100755 --- a/lgsm/functions/fix_tf2.sh +++ b/lgsm/functions/fix_tf2.sh @@ -1,7 +1,8 @@ #!/bin/bash -# LinuxGSM fix_tf2.sh function -# Author: Vector Sigma -# Website: https://github.com/vectorsigma +# LinuxGSM fix_tf2.sh module +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib +# Website: https://linuxgsm.com # Description: Resolves various issues with Team Fortress 2. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" diff --git a/lgsm/functions/fix_ts3.sh b/lgsm/functions/fix_ts3.sh index b019012f7..223c90aea 100755 --- a/lgsm/functions/fix_ts3.sh +++ b/lgsm/functions/fix_ts3.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_ts3.sh function +# LinuxGSM fix_ts3.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Teamspeak 3. diff --git a/lgsm/functions/fix_unt.sh b/lgsm/functions/fix_unt.sh index d030ef318..eae2e6313 100755 --- a/lgsm/functions/fix_unt.sh +++ b/lgsm/functions/fix_unt.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_rust.sh function +# LinuxGSM fix_rust.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves startup issue with Unturned. diff --git a/lgsm/functions/fix_ut.sh b/lgsm/functions/fix_ut.sh index f9c81348a..2e6686a8d 100755 --- a/lgsm/functions/fix_ut.sh +++ b/lgsm/functions/fix_ut.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_ut.sh function -# Author: Alexander Hurd +# LinuxGSM fix_ut.sh module +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Unreal Tournament. diff --git a/lgsm/functions/fix_ut2k4.sh b/lgsm/functions/fix_ut2k4.sh index cc1621815..49610e4b6 100755 --- a/lgsm/functions/fix_ut2k4.sh +++ b/lgsm/functions/fix_ut2k4.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_ut2k4.sh function +# LinuxGSM fix_ut2k4.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Unreal Tournament 2004. diff --git a/lgsm/functions/fix_ut3.sh b/lgsm/functions/fix_ut3.sh index 402683bf1..d3b6f824b 100755 --- a/lgsm/functions/fix_ut3.sh +++ b/lgsm/functions/fix_ut3.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_ut2.sh function +# LinuxGSM fix_ut2.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Unreal Tournament 3. diff --git a/lgsm/functions/fix_wurm.sh b/lgsm/functions/fix_wurm.sh index bf53e35b0..aba24d382 100755 --- a/lgsm/functions/fix_wurm.sh +++ b/lgsm/functions/fix_wurm.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_wurm.sh function +# LinuxGSM fix_wurm.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Wurm Unlimited. diff --git a/lgsm/functions/fix_zmr.sh b/lgsm/functions/fix_zmr.sh index 1825fa327..491c36638 100755 --- a/lgsm/functions/fix_zmr.sh +++ b/lgsm/functions/fix_zmr.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM fix_sfc.sh function +# LinuxGSM fix_sfc.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Resolves various issues with Zombie Master: Reborn. diff --git a/lgsm/functions/info_config.sh b/lgsm/functions/info_config.sh index 4d4b9bd2b..d411a1205 100755 --- a/lgsm/functions/info_config.sh +++ b/lgsm/functions/info_config.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM info_config.sh function +# LinuxGSM info_config.sh module # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Gets specific details from config files. diff --git a/lgsm/functions/info_distro.sh b/lgsm/functions/info_distro.sh index 11da3cc63..3b199b4f0 100755 --- a/lgsm/functions/info_distro.sh +++ b/lgsm/functions/info_distro.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM info_distro.sh function +# LinuxGSM info_distro.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Variables providing useful info on the Operating System such as disk and performace info. # Used for command_details.sh, command_debug.sh and alert.sh. diff --git a/lgsm/functions/info_messages.sh b/lgsm/functions/info_messages.sh index 3f5601a68..ab8e77be4 100755 --- a/lgsm/functions/info_messages.sh +++ b/lgsm/functions/info_messages.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM info_messages.sh function +# LinuxGSM info_messages.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Defines server info messages for details and alerts. diff --git a/lgsm/functions/info_parms.sh b/lgsm/functions/info_parms.sh index 4a81d73ce..7644b03a7 100755 --- a/lgsm/functions/info_parms.sh +++ b/lgsm/functions/info_parms.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM info_parms.sh function +# 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. diff --git a/lgsm/functions/info_stats.sh b/lgsm/functions/info_stats.sh index 9bdee07fd..3332f2c5b 100755 --- a/lgsm/functions/info_stats.sh +++ b/lgsm/functions/info_stats.sh @@ -1,12 +1,12 @@ #!/bin/bash -# LinuxGSM info_stats.sh function +# LinuxGSM info_stats.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Collect optional Stats sent to LinuxGSM project. # Uses Google analytics. -local modulegroup="INFO" -local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" +functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" info_distro.sh diff --git a/lgsm/functions/install_complete.sh b/lgsm/functions/install_complete.sh index 62eec08a2..ad258b224 100755 --- a/lgsm/functions/install_complete.sh +++ b/lgsm/functions/install_complete.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM install_complete.sh function +# LinuxGSM install_complete.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Prints installation completion message and hints. diff --git a/lgsm/functions/install_config.sh b/lgsm/functions/install_config.sh index dbcb27e14..e1f0ba245 100755 --- a/lgsm/functions/install_config.sh +++ b/lgsm/functions/install_config.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM install_config.sh function +# LinuxGSM install_config.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Creates default server configs. diff --git a/lgsm/functions/install_dst_token.sh b/lgsm/functions/install_dst_token.sh index 7eab2a153..50bc7ed97 100755 --- a/lgsm/functions/install_dst_token.sh +++ b/lgsm/functions/install_dst_token.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM install_dst_token.sh function -# Author: Daniel Gibbs & Marvin Lehmann (marvinl97) +# LinuxGSM install_dst_token.sh module +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Configures Don't Starve Together cluster with given token. diff --git a/lgsm/functions/install_eula.sh b/lgsm/functions/install_eula.sh index 1f50007f2..0e6b8bd9b 100755 --- a/lgsm/functions/install_eula.sh +++ b/lgsm/functions/install_eula.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM install_eula.sh function +# LinuxGSM install_eula.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Gets user to accept the EULA. diff --git a/lgsm/functions/install_factorio_save.sh b/lgsm/functions/install_factorio_save.sh index 71690a7a7..f5fdb8a04 100755 --- a/lgsm/functions/install_factorio_save.sh +++ b/lgsm/functions/install_factorio_save.sh @@ -1,8 +1,9 @@ #!/bin/bash -# LinuxGSM install_factorio_save.sh function -# Author: Kristian Polso +# LinuxGSM install_factorio_save.sh module +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com -# Description: Creates the initial save file for Factorio +# Description: Creates the initial save file for Factorio. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" diff --git a/lgsm/functions/install_gslt.sh b/lgsm/functions/install_gslt.sh index 27d384936..a8f8065c2 100755 --- a/lgsm/functions/install_gslt.sh +++ b/lgsm/functions/install_gslt.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM install_gslt.sh function +# LinuxGSM install_gslt.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Configures GSLT. diff --git a/lgsm/functions/install_header.sh b/lgsm/functions/install_header.sh index 420b827f8..4cf067f8f 100755 --- a/lgsm/functions/install_header.sh +++ b/lgsm/functions/install_header.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM install_header.sh function +# LinuxGSM install_header.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Prints installation header. diff --git a/lgsm/functions/install_logs.sh b/lgsm/functions/install_logs.sh index 6a272f2ef..57a41500c 100755 --- a/lgsm/functions/install_logs.sh +++ b/lgsm/functions/install_logs.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM install_logs.sh function +# LinuxGSM install_logs.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Creates log directories. diff --git a/lgsm/functions/install_modules.sh b/lgsm/functions/install_modules.sh index cc516bea0..2ee8e4fc4 100755 --- a/lgsm/functions/install_modules.sh +++ b/lgsm/functions/install_modules.sh @@ -1,8 +1,11 @@ #!/bin/bash -# LinuxGSM install_modules.sh function +# LinuxGSM install_modules.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com -# Description: Downloads all modules on install +# Description: Downloads all modules on install. + +functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" echo -e "" echo -e "${lightyellow}Downloading LinuxGSM Modules${default}" diff --git a/lgsm/functions/install_mta_resources.sh b/lgsm/functions/install_mta_resources.sh index 194d9f546..011ad9b71 100755 --- a/lgsm/functions/install_mta_resources.sh +++ b/lgsm/functions/install_mta_resources.sh @@ -1,9 +1,9 @@ #!/bin/bash -# LinuxGSM install_mta_resources.sh function +# LinuxGSM install_mta_resources.sh module # Author: Daniel Gibbs -# Contributor: ChaosMTA +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com -# Description: Installs the libmysqlclient for database functions on the server and optionally installs default resources required to run the server +# Description: Installs the libmysqlclient for database functions on the server and optionally installs default resources required to run the server. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" diff --git a/lgsm/functions/install_retry.sh b/lgsm/functions/install_retry.sh index 070a4a816..080f864a2 100755 --- a/lgsm/functions/install_retry.sh +++ b/lgsm/functions/install_retry.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM install_retry.sh function +# LinuxGSM install_retry.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Asks for installation retry after failure. diff --git a/lgsm/functions/install_server_dir.sh b/lgsm/functions/install_server_dir.sh index 77c5ab138..9e75fb488 100755 --- a/lgsm/functions/install_server_dir.sh +++ b/lgsm/functions/install_server_dir.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM install_server_dir.sh function +# LinuxGSM install_server_dir.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Creates the server directory. diff --git a/lgsm/functions/install_server_files.sh b/lgsm/functions/install_server_files.sh index a3c40da37..c7a6a3097 100755 --- a/lgsm/functions/install_server_files.sh +++ b/lgsm/functions/install_server_files.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM install_server_files.sh function +# LinuxGSM install_server_files.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Installs server files. diff --git a/lgsm/functions/install_squad_license.sh b/lgsm/functions/install_squad_license.sh index b17b1ab7e..181646e85 100755 --- a/lgsm/functions/install_squad_license.sh +++ b/lgsm/functions/install_squad_license.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM install_squad_license.sh function +# LinuxGSM install_squad_license.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Configures the Squad server's license. diff --git a/lgsm/functions/install_stats.sh b/lgsm/functions/install_stats.sh index 355b7fa67..d3b45b40b 100755 --- a/lgsm/functions/install_stats.sh +++ b/lgsm/functions/install_stats.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM install_stats.sh function +# LinuxGSM install_stats.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Enabled LinuxGSM Stats. diff --git a/lgsm/functions/install_steamcmd.sh b/lgsm/functions/install_steamcmd.sh index 40acf435b..b1e64a42c 100755 --- a/lgsm/functions/install_steamcmd.sh +++ b/lgsm/functions/install_steamcmd.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM install_steamcmd.sh function +# LinuxGSM install_steamcmd.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Downloads SteamCMD on install. diff --git a/lgsm/functions/install_ts3db.sh b/lgsm/functions/install_ts3db.sh index a77a0ea38..07ab7a111 100755 --- a/lgsm/functions/install_ts3db.sh +++ b/lgsm/functions/install_ts3db.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM install_ts3db.sh function +# LinuxGSM install_ts3db.sh module # Author: Daniel Gibbs -# Contributor: PhilPhonic +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Installs the database server MariaDB for TeamSpeak 3. diff --git a/lgsm/functions/install_ut2k4_key.sh b/lgsm/functions/install_ut2k4_key.sh index 144ac278e..124052d05 100755 --- a/lgsm/functions/install_ut2k4_key.sh +++ b/lgsm/functions/install_ut2k4_key.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM install_ut2k4_key.sh function +# LinuxGSM install_ut2k4_key.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Activates ut2k4 server with given key. diff --git a/lgsm/functions/mods_core.sh b/lgsm/functions/mods_core.sh index 010ff109e..7e46f7977 100755 --- a/lgsm/functions/mods_core.sh +++ b/lgsm/functions/mods_core.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM command_mods_install.sh function +# LinuxGSM command_mods_install.sh module # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Core functions for mods list/install/update/remove diff --git a/lgsm/functions/mods_list.sh b/lgsm/functions/mods_list.sh index f60d9b30f..8272d8c16 100755 --- a/lgsm/functions/mods_list.sh +++ b/lgsm/functions/mods_list.sh @@ -1,7 +1,7 @@ #!/bin/bash -# LinuxGSM mods_list.sh function +# LinuxGSM mods_list.sh module # Author: Daniel Gibbs -# Contributor: UltimateByte +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Lists and defines available mods for LinuxGSM supported servers; works along with mods_core.sh. # Usage: To add a mod, you need to add an array variable following the guide to set proper values; diff --git a/lgsm/functions/query_gamedig.sh b/lgsm/functions/query_gamedig.sh index 2443c6e99..4d479a4c0 100755 --- a/lgsm/functions/query_gamedig.sh +++ b/lgsm/functions/query_gamedig.sh @@ -1,6 +1,7 @@ #!/bin/bash -# query_gamedig.sh function +# LinuxGSM query_gamedig.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Querys a gameserver using node-gamedig. # https://github.com/sonicsnes/node-gamedig diff --git a/lgsm/functions/query_gsquery.py b/lgsm/functions/query_gsquery.py index 376f704b7..6c21b1a89 100755 --- a/lgsm/functions/query_gsquery.py +++ b/lgsm/functions/query_gsquery.py @@ -1,7 +1,8 @@ #! /usr/bin/env python3 # -*- coding: utf-8 -*- -# query_gsquery.py -# Author: Anonymous & Daniel Gibbs +# LinuxGSM query_gsquery.py function +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Allows querying of various game servers. diff --git a/lgsm/functions/update_factorio.sh b/lgsm/functions/update_factorio.sh index 3e01e4203..0886a0a0e 100755 --- a/lgsm/functions/update_factorio.sh +++ b/lgsm/functions/update_factorio.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM update_factorio.sh function +# LinuxGSM update_factorio.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Handles updating of Factorio servers. diff --git a/lgsm/functions/update_jediknight2.sh b/lgsm/functions/update_jediknight2.sh index bddb7ec93..770002254 100644 --- a/lgsm/functions/update_jediknight2.sh +++ b/lgsm/functions/update_jediknight2.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM update_jk2.sh function +# LinuxGSM update_jk2.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Handles updating of jk2 servers. diff --git a/lgsm/functions/update_minecraft.sh b/lgsm/functions/update_minecraft.sh index bd8bd3d33..ef4a29a97 100755 --- a/lgsm/functions/update_minecraft.sh +++ b/lgsm/functions/update_minecraft.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM update_minecraft.sh function +# LinuxGSM update_minecraft.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Handles updating of Minecraft servers. diff --git a/lgsm/functions/update_minecraft_bedrock.sh b/lgsm/functions/update_minecraft_bedrock.sh index e12a3cc8e..f109a52e3 100755 --- a/lgsm/functions/update_minecraft_bedrock.sh +++ b/lgsm/functions/update_minecraft_bedrock.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM update_minecraft_bedrock.sh function +# LinuxGSM update_minecraft_bedrock.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Handles updating of Minecraft Bedrock servers. diff --git a/lgsm/functions/update_mta.sh b/lgsm/functions/update_mta.sh index e4e803d68..96afd298f 100755 --- a/lgsm/functions/update_mta.sh +++ b/lgsm/functions/update_mta.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM update_mta.sh function +# LinuxGSM update_mta.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Handles updating of Multi Theft Auto servers. diff --git a/lgsm/functions/update_mumble.sh b/lgsm/functions/update_mumble.sh index 5221f0503..d23f8ed36 100755 --- a/lgsm/functions/update_mumble.sh +++ b/lgsm/functions/update_mumble.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM update_mumble.sh function +# LinuxGSM update_mumble.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Handles updating of Mumble servers. diff --git a/lgsm/functions/update_steamcmd.sh b/lgsm/functions/update_steamcmd.sh index 0733a57d2..85bacb899 100644 --- a/lgsm/functions/update_steamcmd.sh +++ b/lgsm/functions/update_steamcmd.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM update_steamcmd.sh function +# LinuxGSM update_steamcmd.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Handles updating using SteamCMD. diff --git a/lgsm/functions/update_ts3.sh b/lgsm/functions/update_ts3.sh index bea143ff5..94a56a707 100755 --- a/lgsm/functions/update_ts3.sh +++ b/lgsm/functions/update_ts3.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM command_ts3.sh function +# LinuxGSM command_ts3.sh module # Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Handles updating of Teamspeak 3 servers. diff --git a/lgsm/functions/update_vintagestory.sh b/lgsm/functions/update_vintagestory.sh index 093f27c8d..b2231c66e 100755 --- a/lgsm/functions/update_vintagestory.sh +++ b/lgsm/functions/update_vintagestory.sh @@ -1,6 +1,7 @@ #!/bin/bash -# LinuxGSM update_vintagestory.sh function -# Author: Christian Birk +# LinuxGSM update_vintagestory.sh module +# Author: Daniel Gibbs +# Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com # Description: Handles updating of Vintage Story servers. diff --git a/linuxgsm.sh b/linuxgsm.sh index 05287ccc0..c9d85b4f5 100644 --- a/linuxgsm.sh +++ b/linuxgsm.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Project: Game Server Managers - LinuxGSM +# Project: Linux Game Server Managers - LinuxGSM # Author: Daniel Gibbs # License: MIT License, Copyright (c) 2020 Daniel Gibbs # Purpose: Linux Game Server Management Script From 2816217027ed3145287ec07eeacb2652ef5f3ab1 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sun, 24 Jan 2021 15:18:59 +0000 Subject: [PATCH 6/6] fix(install): fix menu missing first server off list (#3196) --- lgsm/functions/update_minecraft.sh | 0 linuxgsm.sh | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 lgsm/functions/update_minecraft.sh diff --git a/lgsm/functions/update_minecraft.sh b/lgsm/functions/update_minecraft.sh old mode 100755 new mode 100644 diff --git a/linuxgsm.sh b/linuxgsm.sh index c9d85b4f5..f8d1449a0 100644 --- a/linuxgsm.sh +++ b/linuxgsm.sh @@ -338,11 +338,11 @@ if [ "${shortname}" == "core" ]; then if [ "${userinput}" == "list" ]||[ "${userinput}" == "l" ]; then { - tail -n +2 "${serverlist}" | awk -F "," '{print $2 "\t" $3}' + tail -n +1 "${serverlist}" | awk -F "," '{print $2 "\t" $3}' } | column -s $'\t' -t | more exit elif [ "${userinput}" == "install" ]||[ "${userinput}" == "i" ]; then - tail -n +2 "${serverlist}" | awk -F "," '{print $1 "," $2 "," $3}' > "${serverlistmenu}" + tail -n +1 "${serverlist}" | awk -F "," '{print $1 "," $2 "," $3}' > "${serverlistmenu}" fn_install_menu result "LinuxGSM" "Select game server to install." "${serverlistmenu}" userinput="${result}" fn_server_info