changed some stuff in start.sh

master
Ebbe Baß 2022-03-26 20:26:34 +01:00
parent 7ed4e610ab
commit 3138b9f51c
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,7 @@
#!bin/bash -e #!bin/bash -e
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
screen -m -d -S rackled bash -c "cd $SCRIPT_DIR && python3 ./main.py" screen -m -d rackled
sleep 5
screen -S rackled -X stuff "cd $SCRIPT_DIR"
screen -S rackled -X stuff "python3 main.py\n"