changed start script

master
Ebbe Baß 2022-03-26 20:24:36 +01:00
parent 4a151cb432
commit 7ed4e610ab
1 changed files with 2 additions and 4 deletions

View File

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