added start fil

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-07-06 09:34:05 +02:00
parent 8452ded609
commit a908690ee2
1 changed files with 12 additions and 0 deletions

12
start.sh 100644
View File

@ -0,0 +1,12 @@
#!bin/bash
if ! command -v screen &> /dev/null
then
sudo apt install screen -y
exit
fi
su - root -c "screen -m -d meme-of-the-day"
sleep 5
screen -S meme-of-the-day -X stuff 'python3 $PWD/save-image.py\n'
screen -XS meme-of-the-day quit