enable meme poster, update crontab

This commit is contained in:
Tykayn 2022-12-07 17:43:18 +01:00 committed by tykayn
parent b3c75294db
commit 8ac05c6cdb
5 changed files with 6 additions and 28 deletions

View File

@ -3,8 +3,8 @@
#
# m h dom mon dow command
0 */2 * * * bash /home/tykayn/meme_poster_random.sh | tee -a /home/tykayn/log_autopost.txt 2>&1
25 7 * * * bash /home/tykayn/tkblog_post.sh | tee -a /home/tykayn/log_autopost.txt 2>&1
5 21 * * * bash /home/tykayn/post_qzine.sh | tee -a /home/tykayn/log_autopost.txt 2>&1
0 9 * * * bash /home/tykayn/osm_wiki.sh | tee -a /home/tykayn/log_autopost.txt 2>&1
0 */2 * * * bash /home/tykayn/www/multi-account-post-schedule-mastodon/assets/bash_scripts/meme_poster_random.sh | tee -a /home/tykayn/log_autopost.txt 2>&1
25 7 * * * bash /home/tykayn/www/multi-account-post-schedule-mastodon/assets/bash_scripts/tkblog_post.sh | tee -a /home/tykayn/log_autopost.txt 2>&1
5 21 * * * bash /home/tykayn/www/multi-account-post-schedule-mastodon/assets/bash_scripts/post_qzine.sh | tee -a /home/tykayn/log_autopost.txt 2>&1
0 9 * * * bash /home/tykayn/www/multi-account-post-schedule-mastodon/assets/bash_scripts/osm_wiki.sh | tee -a /home/tykayn/log_autopost.txt 2>&1

View File

@ -1,9 +0,0 @@
#!/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

View File

@ -1,7 +0,0 @@
#!/bin/bash
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
cd /home/tykayn/www/mastodon_multi_account
/home/tykayn/.nvm/versions/node/v16.16.0/bin/node /home/tykayn/www/mastodon_multi_account/helpers/wiki_osm.mjs | tee -a /home/tykayn/log_autopost.txt 2>&1

View File

@ -1,6 +0,0 @@
#!/bin/bash
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
nvm use 16
cd /home/tykayn/www/mastodon_multi_account
node helpers/tkblogPost.js | tee -a /home/tykayn/log_autopost.txt 2>&1

View File

@ -8,8 +8,8 @@ const folderMemeUnpublished = 'assets/pictures/meme/not_published/'
const folderMemePublished = 'assets/pictures/meme/published/'
const list_unpublished_images = listFilesOfFolder(folderMemeUnpublished)
const reallySendPost = false;
// const reallySendPost = true;
let reallySendPost = false;
reallySendPost = true;
function postLink() {