From 32c7ffd3ff96d2aa493326926d4535b5dbd3add2 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 28 Oct 2023 10:51:35 +0100 Subject: [PATCH] feat: dev-debug.log moved to /data/log if running in docker --- linuxgsm.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/linuxgsm.sh b/linuxgsm.sh index 395285c7b6..9f3611fed9 100755 --- a/linuxgsm.sh +++ b/linuxgsm.sh @@ -15,7 +15,11 @@ # Debugging if [ -f ".dev-debug" ]; then - exec 5> dev-debug.log + if [ -f /.dockerenv ]; then + exec 5> /data/log/dev-debug.log + else + exec 5> dev-debug.log + fi BASH_XTRACEFD="5" set -x fi