From 34ccd91c325416d74ed9c666ac25c8e3a7d73e85 Mon Sep 17 00:00:00 2001 From: CedarLUG Date: Mon, 12 Sep 2016 10:44:22 -0500 Subject: [PATCH] Retro is so new. --- lgsm/functions/command_postdetails.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lgsm/functions/command_postdetails.sh b/lgsm/functions/command_postdetails.sh index dd16e0e96..72bb73032 100644 --- a/lgsm/functions/command_postdetails.sh +++ b/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