Browse Source

fix path, remove email address

master
Felix Ableitner 2 years ago
parent
commit
a608b4cc34
  1. 2
      inventory.example
  2. 14
      templates/run-bot.sh

2
inventory.example

@ -1,5 +1,5 @@
[tootbot]
user@host newsbots_password=my_password
user@host my_email_host=gmail.com newsbots_password=my_password
[all:vars]
ansible_connection=ssh

14
templates/run-bot.sh

@ -7,28 +7,28 @@ set -e
# 3- mastodon password
# 4- instance domain (https:// is automatically added)
PATH="/app/tootbot"
PATH="/tootbot"
cd "$PATH/telesur_en"
../source/tootbot.py telesurenglish me+telesur_en@nutomic.com {{ newsbots_password }} newsbots.eu &>> bot.log &
../source/tootbot.py telesurenglish me+telesur_en@{{ my_email_host }} {{ newsbots_password }} newsbots.eu &>> bot.log &
/bin/sleep 60
cd "$PATH/telesur_es"
../source/tootbot.py teleSURtv me+telesur_es@nutomic.com {{ newsbots_password }} newsbots.eu &>> bot.log &
../source/tootbot.py teleSURtv me+telesur_es@{{ my_email_host }} {{ newsbots_password }} newsbots.eu &>> bot.log &
/bin/sleep 60
cd "$PATH/itsgoingdown"
../source/tootbot.py IGD_News me+itsgoingdown@nutomic.com {{ newsbots_password }} newsbots.eu &>> bot.log &
../source/tootbot.py IGD_News me+itsgoingdown@{{ my_email_host }} {{ newsbots_password }} newsbots.eu &>> bot.log &
/bin/sleep 60
cd "$PATH/postillon"
../source/tootbot.py Der_Postillon me+postillon@nutomic.com {{ newsbots_password }} newsbots.eu &>> bot.log &
../source/tootbot.py Der_Postillon me+postillon@{{ my_email_host }} {{ newsbots_password }} newsbots.eu &>> bot.log &
/bin/sleep 60
cd "$PATH/telepolis"
../source/tootbot.py telepolis_news me+telepolis@nutomic.com {{ newsbots_password }} newsbots.eu &>> bot.log &
../source/tootbot.py telepolis_news me+telepolis@{{ my_email_host }} {{ newsbots_password }} newsbots.eu &>> bot.log &
/bin/sleep 60
cd "$PATH/granma"
../source/tootbot.py Granma_English me+granma@nutomic.com {{ newsbots_password }} newsbots.eu &>> bot.log &
../source/tootbot.py Granma_English me+granma@{{ my_email_host }} {{ newsbots_password }} newsbots.eu &>> bot.log &
/bin/sleep 60

Loading…
Cancel
Save