Browse Source

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.
pull/4298/head
Daniel Gibbs 2 years ago
parent
commit
0c610c785b
  1. 4
      .github/workflows/update-check.yml

4
.github/workflows/update-check.yml

@ -33,11 +33,11 @@ jobs:
- name: Insert steamuser
if: matrix.shortname == 'jk2'
run: sed -i 's/steamuser=""/steamuser="${STEAMCMD_USER}"/g' lgsm/config-lgsm/jk2server/common.cfg
run: sed -i 's/steamuser=""/steamuser="${STEAMCMD_USER}"/g' lgsm/config-lgsm/${{ matrix.shortname }}server/common.cfg
- name: Insert steampass
if: matrix.shortname == 'jk2'
run: sed -i 's/steampass=""/steampass='${STEAMCMD_PASS}' lgsm/config-lgsm/jk2server/common.cfg
run: sed -i 's/steampass=""/steampass='${STEAMCMD_PASS}'/g' lgsm/config-lgsm/${{ matrix.shortname }}server/common.cfg
- name: Install server
run: LGSM_GITHUBBRANCH="${GITHUB_REF#refs/heads/}" ./${{ matrix.shortname }}server auto-install

Loading…
Cancel
Save