diff --git a/SOURCES/config/kf2-srv.conf b/SOURCES/config/kf2-srv.conf index a8b793e..171db32 100644 --- a/SOURCES/config/kf2-srv.conf +++ b/SOURCES/config/kf2-srv.conf @@ -29,3 +29,6 @@ MutNames['ZedCustom.ZedCustomMut']='ZedVarients' IniPermissions=664 IniGroup=steam +# if true all steamclient.so will be replaced by symlinks to: +# /usr/games/steamcmd/linux64/steamclient.so +FixSteamclientLib=True diff --git a/SOURCES/main/lib/game.lib b/SOURCES/main/lib/game.lib index f85d62e..6f9d82f 100644 --- a/SOURCES/main/lib/game.lib +++ b/SOURCES/main/lib/game.lib @@ -243,12 +243,16 @@ function create_cache () function fix_steamclient_so () { - rm -f "$InstallDir/linux64/steamclient.so" - rm -f "$InstallDir/steamclient.so" - rm -f "$InstallDir/Binaries/Win64/lib64/steamclient.so" - ln -s "/usr/games/steamcmd/linux64/steamclient.so" "$InstallDir/linux64/steamclient.so" - ln -s "/usr/games/steamcmd/linux64/steamclient.so" "$InstallDir/steamclient.so" - ln -s "/usr/games/steamcmd/linux64/steamclient.so" "$InstallDir/Binaries/Win64/lib64/steamclient.so" + include /etc/kf2-srv/kf2-srv.conf + + if echo "$FixSteamclientLib" | grep -qiF 'true'; then + rm -f "$InstallDir/linux64/steamclient.so" + rm -f "$InstallDir/steamclient.so" + rm -f "$InstallDir/Binaries/Win64/lib64/steamclient.so" + ln -s "/usr/games/steamcmd/linux64/steamclient.so" "$InstallDir/linux64/steamclient.so" + ln -s "/usr/games/steamcmd/linux64/steamclient.so" "$InstallDir/steamclient.so" + ln -s "/usr/games/steamcmd/linux64/steamclient.so" "$InstallDir/Binaries/Win64/lib64/steamclient.so" + fi } function make_default_instance () # $1: Dir diff --git a/SPECS/kf2-srv.spec b/SPECS/kf2-srv.spec index b99ee53..e5a2159 100644 --- a/SPECS/kf2-srv.spec +++ b/SPECS/kf2-srv.spec @@ -1,7 +1,7 @@ %global steamuser steam Name: kf2-srv -Version: 0.17.1 +Version: 0.18.1 Release: 1%{dist} Summary: Killing Floor 2 server Group: Amusements/Games @@ -101,6 +101,9 @@ if [[ $1 == 1 ]]; then # Install fi %changelog +* Tue Jun 22 2021 GenZmeY - 0.18.1-1 +- add FixSteamclientLib setting to config. + * Sat Feb 27 2021 GenZmeY - 0.17.1-1 - fix the start of the original app.