소스 검색

Retro is so new.

CedarLUG 9 년 전
부모
커밋
34ccd91c32
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      lgsm/functions/command_postdetails.sh

+ 5 - 1
lgsm/functions/command_postdetails.sh

@@ -37,7 +37,11 @@ fn_bad_tmpfile() {
 }
 
 # Rather than a one-pass sed parser, default to using a temporary directory
-posttmpdir="${lgsmdir}/tmp"
+if [ -d "${lgsmdir}" ]; then
+    posttmpdir="${lgsmdir}/tmp" 
+else 
+    posttmpdir="${rootdir}/tmp" 
+fi
 
 # Not all game servers possess a tmp directory.  So create it if
 # it doesn't already exist