update scripts to add --force option

This commit is contained in:
Tykayn 2022-12-14 18:21:56 +01:00 committed by tykayn
parent 75e460e0f0
commit 1b9ba732ee
5 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
nvm use 16
cd /home/tykayn/www/multi-account-post-schedule-mastodon
node helpers/meme_poster_random.mjs | tee -a /home/tykayn/log_autopost.txt 2>&1
node helpers/meme_poster_random.mjs --force | tee -a /home/tykayn/log_autopost.txt 2>&1

View File

@ -1,4 +1,4 @@
#!/bin/bash
nvm use 16
cd /home/tykayn/www/multi-account-post-schedule-mastodon
node helpers/wiki_osm.mjs | tee -a /home/tykayn/log_autopost.txt 2>&1
node helpers/wiki_osm.mjs --force | tee -a /home/tykayn/log_autopost.txt 2>&1

View File

@ -1,4 +1,4 @@
#!/bin/bash
nvm use 16
cd /home/tykayn/www/multi-account-post-schedule-mastodon
node helpers/qzine_article.mjs | tee -a /home/tykayn/log_autopost.txt 2>&1
node helpers/qzine_article.mjs --force | tee -a /home/tykayn/log_autopost.txt 2>&1

View File

@ -1,4 +1,4 @@
#!/bin/bash
nvm use 16
cd /home/tykayn/www/multi-account-post-schedule-mastodon
node helpers/tykayn_blog.mjs | tee -a /home/tykayn/log_autopost.txt 2>&1
node helpers/tykayn_blog.mjs --force | tee -a /home/tykayn/log_autopost.txt 2>&1

View File

@ -292,7 +292,7 @@ function sendMessageWikiTagOfTheDay(message, download_description_src) {
message,
}
if(download_description_src) {
let filePathImage = `osm_wiki_description_page.jpg`
let filePathImage = `${process.cwd()}/assets/blog_posts_medias/osm_wiki_description_page.jpg`
if (download_description_src) {
console.log("firstPictureSource found", download_description_src)