Преглед изворни кода

revert: fix(kf2): create the KFGame/Cache map-load directory on install (#5108)

This reverts commit bd08affb7133d775956c111f65f55bded5fd115e.

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.
Daniel Gibbs пре 4 дана
родитељ
комит
c763125cd5
1 измењених фајлова са 0 додато и 11 уклоњено
  1. 0 11
      lgsm/modules/fix_kf2.sh

+ 0 - 11
lgsm/modules/fix_kf2.sh

@@ -17,14 +17,3 @@ fn_sleep_time_10
 exitbypass=1
 command_stop.sh
 fn_firstcommand_reset
-
-# The KF2 Linux dedicated server does not create KFGame/Cache, the directory it
-# uses when loading maps (including Workshop maps). The KF2 wiki lists this as a
-# known Linux issue and the remedy as `mkdir -p KFGame/Cache`. Creating it after
-# install, only once KFGame exists, keeps it present after every install.
-if [ -d "${serverfiles}/KFGame" ] && [ ! -d "${serverfiles}/KFGame/Cache" ]; then
-	fixname="KFGame/Cache directory"
-	fn_fix_msg_start
-	mkdir -p "${serverfiles}/KFGame/Cache"
-	fn_fix_msg_end
-fi