From 1e76e92fcaf208c27c4f44bd4e9f3bdbfe6a4bdc Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Sat, 27 Feb 2021 03:25:38 +0300 Subject: [PATCH] bugfixing --- SOURCES/main/lib/game.lib | 2 ++ SOURCES/main/lib/instance.lib | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/SOURCES/main/lib/game.lib b/SOURCES/main/lib/game.lib index 34e9bab..f85d62e 100644 --- a/SOURCES/main/lib/game.lib +++ b/SOURCES/main/lib/game.lib @@ -282,6 +282,8 @@ function apply_patch () { if [[ -x "$PatchDir/kf2-ranked-patch" ]]; then "$PatchDir/kf2-ranked-patch" "$AppBin" "$AppBinOrig" + chmod +x "$AppBin" "$AppBinOrig" + chown "$SteamUser:$SteamUser" "$AppBin" "$AppBinOrig" fi } diff --git a/SOURCES/main/lib/instance.lib b/SOURCES/main/lib/instance.lib index 46c3b74..58ba12f 100644 --- a/SOURCES/main/lib/instance.lib +++ b/SOURCES/main/lib/instance.lib @@ -45,7 +45,7 @@ function service_name () # $*: Instance[s] local Services="" for Instance in $* do - if multini -g "$InstanceConfigDir/$Instance" '' "UseOrigApp" 2> /dev/null | grep -Piqo '^True$' && test -x "$AppBinOrig"; then + if multini -g "$InstanceConfigDir/$Instance/instance.conf" '' "UseOrigApp" 2> /dev/null | grep -Piqo '^True$' && test -x "$AppBinOrig"; then Services+=" kf2-srv${KF2POSTFIX}-orig@$Instance.service" else Services+=" kf2-srv${KF2POSTFIX}@$Instance.service"