From 8bb9b59262e8109f4ce6cdb1b0bf930f94cdc3c8 Mon Sep 17 00:00:00 2001 From: crowetic Date: Thu, 24 Oct 2024 14:35:06 -0700 Subject: [PATCH] fixed screen command --- restart-qortal-every-2-hours.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restart-qortal-every-2-hours.sh b/restart-qortal-every-2-hours.sh index 3e95853..eb6f9f4 100644 --- a/restart-qortal-every-2-hours.sh +++ b/restart-qortal-every-2-hours.sh @@ -6,7 +6,7 @@ QORTAL_DIR=~/qortal # Check if screen is installed if command -v screen &> /dev/null; then echo "Screen is installed, running script in a screen session..." - screen -S qortal_restart -dm bash -c "$0" + screen -S qortal_restart -dm bash -c "$(realpath $0)" exit 0 else echo "Screen is not installed, running script normally..."