From a908690ee2336ef36ef8a00931a6068ab73df0c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Wed, 6 Jul 2022 09:34:05 +0200 Subject: [PATCH] added start fil MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- start.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 start.sh 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