From 34101cecb7e90185d8a084f53fe2109e0a4532cc Mon Sep 17 00:00:00 2001 From: tykayn Date: Mon, 24 Oct 2022 21:35:16 +0200 Subject: [PATCH] Ajouter 'cron_scripts/meme_poster_random.sh' --- cron_scripts/meme_poster_random.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cron_scripts/meme_poster_random.sh diff --git a/cron_scripts/meme_poster_random.sh b/cron_scripts/meme_poster_random.sh new file mode 100644 index 0000000..88c8dd8 --- /dev/null +++ b/cron_scripts/meme_poster_random.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +#nvm use 16 +PATH=/home/tykayn/.nvm/versions/node/v16.16.0/bin:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/snap/bin/home/tykayn/bin:/home/tykayn/bin +date | tee -a /home/tykayn/log_autopost.txt 2>&1 +echo "envoi d'un post de meme random" | tee -a /home/tykayn/log_autopost.txt 2>&1 +cd +INSTANCE_MASTODON="https://mastodon.cipherbliss.com" TOKEN_MEME="MY_APP_USER_TOKEN" /home/tykayn/run-node /home/tykayn/www/mastodon_multi_account/helpers/meme_poster_random.js | tee -a /home/tykayn/log_autopost.tt +echo "envoyé" | tee -a /home/tykayn/log_autopost.txt 2>&1