Skip to content

Commit c763125

Browse files
committed
revert: fix(kf2): create the KFGame/Cache map-load directory on install (#5108)
This reverts commit bd08aff. On the current KF2 server build (10897) the server creates KFGame/Cache itself when it first downloads a Workshop item, so the directory is not missing. The map-load crash comes from starting directly on a Workshop map that has not been downloaded yet, which this change does not affect.
1 parent 5d5bd40 commit c763125

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

‎lgsm/modules/fix_kf2.sh‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,3 @@ fn_sleep_time_10
1717
exitbypass=1
1818
command_stop.sh
1919
fn_firstcommand_reset
20-
21-
# The KF2 Linux dedicated server does not create KFGame/Cache, the directory it
22-
# uses when loading maps (including Workshop maps). The KF2 wiki lists this as a
23-
# known Linux issue and the remedy as `mkdir -p KFGame/Cache`. Creating it after
24-
# install, only once KFGame exists, keeps it present after every install.
25-
if [ -d "${serverfiles}/KFGame" ] && [ ! -d "${serverfiles}/KFGame/Cache" ]; then
26-
fixname="KFGame/Cache directory"
27-
fn_fix_msg_start
28-
mkdir -p "${serverfiles}/KFGame/Cache"
29-
fn_fix_msg_end
30-
fi

0 commit comments

Comments
 (0)