diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..9a44307 --- /dev/null +++ b/start.sh @@ -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 \ No newline at end of file