add bash scripts

This commit is contained in:
Tykayn 2022-08-09 16:38:07 +02:00 committed by tykayn
parent fd7bfc8270
commit 762c7a52be
8 changed files with 32 additions and 1 deletions

View File

@ -63,3 +63,18 @@ Les merge requests sont bienvenues.
par tykayn: contact at cipherbliss.com, https://www.cipherbliss.com
https://mastodon.cipherbliss.com
# Cronjob
```
12 12-14 * * * cd /home/tykayn/www/mastodon_multi_account && nvm use 16 && node helpers/tkblogPost.js | tee -a /home/tykayn/log_autopost.txt 2>&1
0 7 * * * cd /home/tykayn/www/mastodon_multi_account && nvm use 16 && node helpers/wiki_osm.mjs | tee -a /home/tykayn/log_autopost.txt 2>&1
0 0 * * * cd /home/tykayn/www/mastodon_multi_account && nvm use 16 && node helpers/postQzine.js | tee -a /home/tykayn/log_autopost.txt 2>&1
# version avec scripts bash
0 7 * * * su tykayn -c "bash /home/tykayn/wiki_osm.sh"
*/30 * * * * su tykayn -c "bash /home/tykayn/meme_poster_random.sh"
0 0 * * * su tykayn -c "bash /home/tykayn/post_qzine.sh"
14 12-14 * * * su tykayn -c "bash /home/tykayn/tkblog_post.sh"
```

View File

@ -0,0 +1,4 @@
#!/bin/bash
nvm use 16
cd /home/tykayn/www/mastodon_multi_account
node helpers/meme_poster_random.js | tee -a /home/tykayn/log_autopost.txt 2>&1

View File

@ -0,0 +1,4 @@
#!/bin/bash
nvm use 16
cd /home/tykayn/www/mastodon_multi_account
node helpers/wiki_osm.mjs | tee -a /home/tykayn/log_autopost.txt 2>&1

View File

@ -0,0 +1,4 @@
#!/bin/bash
nvm use 16
cd /home/tykayn/www/mastodon_multi_account
node helpers/postQzine.js | tee -a /home/tykayn/log_autopost.txt 2>&1

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

View File

@ -4,7 +4,7 @@
* Module dependencies.
*/
var app = require('../app');
var app = require('../app.js');
var debug = require('debug')('mastodon-multi-account:server');
var http = require('http');