continues

This commit is contained in:
crowetic 2024-10-24 14:56:07 -07:00
parent 478efc6898
commit 259824ddcd

View File

@ -12,7 +12,7 @@ log() {
# Check if screen is installed
if command -v screen &> /dev/null; then
log "Screen is installed, running script in a screen session..."
screen -S qortal_restart -dm bash -c "cd $(pwd) && bash $(realpath "$0")"
screen -S qortal_restart -dm bash -c "cd $QORTAL_DIR && ./$(basename "$0")"
if [ $? -eq 0 ]; then
log "Script successfully started in screen session 'qortal_restart'."
else