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"