Commit Graph

6455 Commits

Author SHA1 Message Date
Daniel Gibbs
099412730c
feat(alerts): deprecate mailgun (#4324)
mailgun is no longer free and stats suggest it is not used at all. Removing support
2023-10-01 23:21:01 +01:00
Daniel Gibbs
b724223e1f
Merge branch 'release/v23.5.3' into develop 2023-09-26 10:36:39 +01:00
Daniel Gibbs
18facaddbc
Merge branch 'master' into release/v23.5.3 2023-09-26 10:35:59 +01:00
Daniel Gibbs
a77cbf7ad7
Merge pull request #4319 from GameServerManagers/feature/update-restart-bug
Release v23.5.3
2023-09-26 10:35:22 +01:00
Daniel Gibbs
107d48ee01
Release v23.5.3 2023-09-26 09:56:01 +01:00
Daniel Gibbs
2297d362a3
feat: moved last-updated.lock file 2023-09-26 00:35:43 +01:00
Daniel Gibbs
13c62431d0
refactor: improve log file display in info_messages.sh
The code change modifies the tail command in the fn_info_logs function to exclude lines containing "==>". This improves the display of log files by filtering out unnecessary information.
2023-09-26 00:30:54 +01:00
Daniel Gibbs
4a02dfd382
fix: set $USER if missing
$USER is not available in sh which is used by cron.
2023-09-25 20:30:40 +01:00
Daniel Gibbs
753eb2a99a
feat: moved last-updated.lock file
moved last-updated.lock to ensure it doesn't force a reboot on monitor
2023-09-25 19:03:36 +01:00
Daniel Gibbs
79dc5f7a13
fix(steamcmd): hide steamcmd output 2023-09-19 16:57:39 +01:00
Daniel Gibbs
5c33eb33c4
feat: add curl command to query Steam Master Server
Add a curl command to query the Steam Master Server for server addresses. This allows retrieving server information using the GetServersAtAddress API endpoint provided by Steam.
2023-09-19 16:57:09 +01:00
Daniel Gibbs
4f2acdd12a
refactor: minor _default.cfg changes
- Updated the IP and port settings for ckserver, colserver, fctrserver, hwserver, ohdserver, rustserver, and untserver.
- Added a link to the documentation for predefined parameters in ckserver and hwserver.
- Modified the startparameters value in colserver to include additional parameters.
- Changed the branch value in fctrserver to "stable".
- Updated the servername value in hwserver and ohdserver to "LinuxGSM".
- Modified the defaultmap value in hwserver to "nullius".
- Removed optional comments from hwerver regarding defaultmap and creativemode values.
- Updated gamemode values in rusterver and untserer with their respective options.
2023-09-19 16:55:16 +01:00
Daniel Gibbs
32ecb5c0db
Merge branch 'hotfix/v23.5.2' 2023-09-12 21:42:51 +01:00
Daniel Gibbs
a0402ff35f
Merge branch 'hotfix/v23.5.2' into develop 2023-09-12 21:42:50 +01:00
Daniel Gibbs
1728fd943c
Release v23.5.2 2023-09-12 21:42:42 +01:00
Daniel Gibbs
e4e1d72330
feat(docker): update datadir variable assignment
The code change updates the assignment of the `datadir` variable in the `linuxgsm.sh` script. The new assignment checks if the environment variable `LGSM_DATADIR` is set and uses its value, otherwise it falls back to using `${lgsmdir}/data`.
2023-09-11 22:42:26 +01:00
Daniel Gibbs
1892288a73
feat: add uuid-runtime to Debian and Ubuntu CSV files
This commit adds the `uuid-runtime` package to the Debian and Ubuntu CSV files. This package is required for stats.
2023-09-11 21:42:04 +01:00
Daniel Gibbs
b59e09c811
Merge branch 'hotfix/v23.5.1' 2023-09-10 21:59:25 +01:00
Daniel Gibbs
a7330b81d0
Merge branch 'hotfix/v23.5.1' into develop 2023-09-10 21:59:25 +01:00
Daniel Gibbs
db3c384484
Release v23.5.1 2023-09-10 21:59:16 +01:00
Daniel Gibbs
a05c6a5c18
fix(ps): move _default.cfg to new name 2023-09-10 21:58:02 +01:00
Daniel Gibbs
622e2869b1
fix(tw): correct game info 2023-09-10 21:57:32 +01:00
dependabot[bot]
928de3b36f
build(deps): bump actions/checkout from 3 to 4 (#4306)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-10 20:17:10 +01:00
Daniel Gibbs
d9bf89d20d
Merge branch 'release/v23.5.0' into develop 2023-09-10 20:12:49 +01:00
Daniel Gibbs
fc36dc9526
Merge branch 'release/v23.5.0' 2023-09-10 20:12:49 +01:00
Daniel Gibbs
178c216347 Release v23.5.0 2023-09-10 20:11:29 +01:00
Daniel Gibbs
2ebcfb9ce4 Merge remote-tracking branch 'origin/release/v23.5.0' into release/v23.5.0 2023-09-10 20:10:38 +01:00
Daniel Gibbs
a4a85cfd0a minor rewording 2023-09-10 20:10:30 +01:00
Daniel Gibbs
b8a275a297
Merge branch 'master' into release/v23.5.0 2023-09-10 19:49:37 +01:00
Daniel Gibbs
272b500806 Update README.md 2023-09-08 23:52:03 +01:00
Daniel Gibbs
9326d48684
fix(mta): change updater to use builds (#4310)
https://github.com/multitheftauto/mtasa-blue/issues/3176
2023-09-08 23:45:59 +01:00
Daniel Gibbs
6921851da6 feat(pvr): add fix_pvr.sh module 2023-09-08 08:49:30 +01:00
Daniel Gibbs
08057c88b8 Merge remote-tracking branch 'origin/develop' into develop 2023-09-07 23:39:49 +01:00
Daniel Gibbs
22e812f75c fix(ts3): update now works in docker 2023-09-07 23:39:43 +01:00
Daniel Gibbs
8f714822fe
feat(ci): game server update checker (#4298)
* refactor: shorten module update function names

The commit renames the update functions for several game modules to shorter names. The new names are more concise and easier to remember, which should improve code readability and maintainability.

* feat: Add Update Check workflow

This commit adds a new GitHub Actions workflow that checks if LinuxGSM is picking up game server config and parameter variables. The workflow runs on push and manual triggers, with concurrency settings to cancel in-progress jobs. It downloads linuxgsm.sh, installs dependencies, grabs the server, enables developer mode, installs the server, and updates it.

* feat: Add concurrency group names to workflows

The `details-check.yml` and `update-check.yml` workflows now have a concurrency group name that includes the branch or tag name. This will allow for better management of concurrent workflow runs.

* 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).

* feat: Add support for 32-bit architecture

This commit adds support for 32-bit architecture by running the command "sudo dpkg --add-architecture i386" instead of installing libxml2-utils and jq.

* feat: Add i386 architecture and install libstdc++6

This commit adds the installation of libstdc++6:i386 package to support 32-bit applications. It also includes adding the i386 architecture to dpkg.

* feat: Update dependencies for LinuxGSM

Changed the dependency from libstdc++6:i386 to libgcc-s1:i386 in the update-check.yml file. This change was made to ensure compatibility with newer versions of LinuxGSM.

* feat: Add update and force-update server functionality

This commit adds the ability to check for updates and force updates on a server. The update-check.yml file has been modified to include new jobs that run the LGSM_GITHUBBRANCH command with specific arguments.

* feat: Add dependencies for server installation

This commit adds the necessary dependencies to install a game server. The `update-check.yml` file has been updated to include the installation of `bsdmainutils`, `libsdl2-2.0-0:i386`, `libtinfo5:i386`, and `steamcmd`.

* steamcmd only

* steamcmd

* test

* test

* refactor: improve random password generation in install_config.sh

The code change refactors the random password generation in the `install_config.sh` file. Instead of using `tr -dc A-Za-z0-9_ < /dev/urandom | head -c 8 | xargs`, it now uses `tr -dc 'A-Za-z0-9_' < /dev/urandom 2>/dev/null | head -c 8 | xargs`. This change improves the reliability and security of generating random passwords.

* refactor: remove redundant code and set default branch

The commit refactors the code by removing redundant code that sets the branch to "public" if no custom branch is specified. This change simplifies the logic and improves readability.

* test

* fix: fix steamcmd build version retrieval

The code changes in this commit fix an issue with retrieving the build version from SteamCMD. The previous implementation was not correctly capturing the buildid. This has been resolved by adding additional echo statements for debugging purposes.

* test

fix: remove unnecessary app_info_print command

The commit removes the unnecessary `app_info_print` command from the code. This command was not needed to check the buildid.

* fix: GitHub Actions test failure

The code change fixes a failing GitHub Actions test by running SteamCMD twice. The first run is to update the app info, and the second run retrieves the build ID for the specified branch.

* Add steam user and password secret for jk2

* refactor: update steamuser and steampass paths in jk2server config

The code changes refactor the paths for `steamuser` and `steampass` in the configuration file of the `jk2server`. The previous paths were incorrect, so they have been updated to point to the correct location.

* refactor: update steamuser and steampass insertion in LGSM configuration

The code changes refactor the way steamuser and steampass are inserted into the LGSM configuration file. Instead of hardcoding the values, they are now dynamically inserted using environment variables. This improves flexibility and security when setting up the server.

* refactor: simplify steamuser and steampass insertion in update-check.yml

The code changes remove unnecessary sed commands and replace them with a single echo command to insert the values of STEAMCMD_USER and STEAMCMD_PASS into the common.cfg file. This simplifies the code and improves readability.

* feat: update steamuser and steampass in common.cfg

The commit updates the code to properly insert the `steamuser` and `steampass` values in the `common.cfg` file. The previous code was not correctly formatting the values, which caused issues with server installation. This change ensures that the values are properly formatted using double quotes for `steamuser` and single quotes for `steampass`.
2023-09-07 23:12:53 +01:00
Daniel Gibbs
16c4493d1d fix(monitor): migration code 2023-09-07 22:44:02 +01:00
Daniel Gibbs
fe610f3ec9 feat(inss): enable master server checking 2023-09-07 21:25:20 +01:00
Daniel Gibbs
ca184e32e3 fix(monitor): migration code 2023-09-07 21:23:41 +01:00
Daniel Gibbs
8cd16acfd0 fix: make pgrep unique
- Refactored the code to use `pgrep -fcx` instead of `pgrep -fc` for checking process counts.
- Updated print statements to provide more informative messages.
- Renamed some variables for clarity.
- Added newlines after printing information.
2023-09-06 22:01:18 +01:00
Daniel Gibbs
20f5e8d5dc feat(ps): Renamed pstbs to ps
Post Scriptum changed is name removing "The Bloody Seventh" part. I have updated the naming of this game server.
2023-09-06 19:27:05 +01:00
Daniel Gibbs
3959fa4bf4 fix(pstbs): correct gamename 2023-09-06 19:22:23 +01:00
Daniel Gibbs
89ec08c8f1 fix(pvr): add fix for libc 2023-09-06 16:40:34 +01:00
Daniel Gibbs
5593658107 fix(pvr): update executable details
PVR server has changed the name if its executable
2023-09-06 15:41:39 +01:00
Daniel Gibbs
a3c5a847e5 fix(start): lock file created before check
Even if check fails a lock file will be generated to allow monitor to run
2023-09-06 15:20:07 +01:00
Daniel Gibbs
82e5da4b1d fix(info_game): refactor key value pairs parsing
split out space and equals delimited
2023-09-06 14:27:15 +01:00
Daniel Gibbs
65e3a93d0d fix(unt): config is auto generated 2023-09-05 00:01:07 +01:00
Daniel Gibbs
8a9f34321d feat(inss): add optional gslt to start parameters 2023-09-04 23:11:56 +01:00
Daniel Gibbs
ac78fc1b8f
fix(pz): correct start parameters (#4305)
* refactor: remove unnecessary memory allocation in pzserver config

The startparameters variable in the pzserver configuration file was modified to remove the unnecessary memory allocation parameter. This change simplifies the configuration and improves efficiency.

* refactor: simplify startparameters in pzserver config

The startparameters in the pzserver config file have been simplified to only include the server name. This change removes unnecessary parameters and improves readability.
2023-09-04 22:10:41 +01:00
Daniel Gibbs
5f0f12a9b2
feat(vint): migrate to dotnet from mono (#4304)
* adde dotnet repo

* feat: update package dependencies for Ubuntu 16.04, 18.04, and 20.04

- Updated the package dependency for "vints" from "mono-complete" to "aspnetcore-runtime-7.0" in the Ubuntu 16.04, 18.04, and 20.04 CSV files.
- Also updated the package dependency for "vpmc" from "openjdk-8-jre" to "openjdk-11-jre" in the Ubuntu 18.04 and 20.04 CSV files.

This commit ensures that the correct package dependencies are specified for these Ubuntu versions, improving compatibility and functionality of the codebase.

* refactor: update dependency check for ASP.NET Core runtime

The code has been refactored to update the dependency check for the ASP.NET Core runtime. The condition that checks for the presence of "dotnet-runtime-7.0" has been changed to "aspnetcore-runtime-7.0". This ensures that the correct dependency is being checked and improves accuracy in determining if the required runtime is installed.

* fix: fix conditional statement in check_deps.sh

The commit fixes a bug in the conditional statement of the check_deps.sh script. Previously, it incorrectly checked if dotnetversion was empty instead of checking if it was not empty. This caused an incorrect value to be assigned to depstatus and dotnetinstalled variables. The bug has been fixed by correcting the conditional statement.

* refactor: simplify install_config.sh

This commit simplifies the `install_config.sh` file by removing unnecessary code for the "vints" configuration. The configuration is now generated on first run, and the list of config locations is still provided.

* refactor: improve error handling and display in core_exit.sh and install_config.sh

- In core_exit.sh, added a check to set exit code to 4 if it is not already set.
- In install_config.sh, improved the display of missing config file by highlighting the file path.

These changes aim to enhance the error handling and provide clearer information to users.

* feat: add exitcode handling to command_install.sh

The commit adds a check for the exitcode variable in command_install.sh. If it is empty, it sets it to 0. This change ensures proper handling of the exitcode in the script.

* refactor: improve installation process

The code changes in this commit refactor the installation process. The `command_install.sh` file has been modified to remove unnecessary code. Additionally, the `install_complete.sh` file has been updated to provide more informative messages based on the exit code. This improves the overall clarity and user experience during installation.

Co-authored-by: AI Assistant <assistant@example.com>

* refactor: remove redundant code in install_config.sh

The commit removes a redundant function call in the install_config.sh file. The "fn_list_config_locations" function is no longer needed for the "vints" configuration.

* a

* refactor: improve logging in command_stop.sh

- Changed `fn_script_log_error` to `fn_script_log_info` for consistency
- Removed unnecessary empty line

* refactor: dont try to stop a server that is already stopped

* refactor: remove redundant code and improve socket name generation

The commit refactors the code in `command_start.sh` and `linuxgsm.sh` to remove redundant code related to generating a unique tmux socket name. The code now creates a uid file if it doesn't exist, stops the running server, generates a uid using the current timestamp, and updates the socketname accordingly. This change improves the efficiency and reliability of socket name generation.

* refactor: remove unnecessary command_stop.sh call

The code change removes the unnecessary call to `command_stop.sh` in the `linuxgsm.sh` file. This improves efficiency and prevents lingering tmux sessions.

* refactor: remove duplicate code for creating unique tmux socket name

The code changes in `command_start.sh` and `linuxgsm.sh` refactor the creation of a unique tmux socket name. The duplicate code in `linuxgsm.sh` has been removed, resulting in cleaner and more efficient code.

* refactor: improve socketname assignment

The code change refactors the socketname assignment in the linuxgsm.sh script. Instead of directly assigning it to "${sessionname}-$(cat "${datadir}/${selfname}.uid")", it now checks if the file "${datadir}/${selfname}.uid" exists before assigning the value. This improves error handling and prevents potential issues when the file doesn't exist.
2023-09-04 21:24:27 +01:00
Daniel Gibbs
49be44db23 feat: add mono support for Ubuntu 22.04 and Debian 12
This commit adds support for Ubuntu 22.04 and Debian 12 in the check_deps.sh script. It includes the necessary commands to install dependencies for Mono repository on these versions of the operating systems.
2023-09-03 21:13:27 +01:00