still failing screen for some reason, trying this...

This commit is contained in:
crowetic 2024-10-24 14:39:24 -07:00
parent ec94a02f06
commit 9b9ae82a30

View File

@ -7,7 +7,7 @@ QORTAL_DIR=~/qortal
if command -v screen &> /dev/null; then
echo "Screen is installed, running script in a screen session..."
SCRIPT_NAME="restart-qortal-every-2-hours.sh"
cp "$0" "$QORTAL_DIR/$SCRIPT_NAME"
cp "$(dirname "$BASH_SOURCE")/$SCRIPT_NAME" "$QORTAL_DIR/$SCRIPT_NAME"
screen -S qortal_restart -dm bash "$QORTAL_DIR/$SCRIPT_NAME"
exit 0
else