From a608b4cc34c3ae45f2433e7fa203e3d9a5f1fc9d Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 10 Dec 2019 12:34:39 +0100 Subject: [PATCH] fix path, remove email address --- inventory.example | 2 +- templates/run-bot.sh | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/inventory.example b/inventory.example index a8bb48e..007c343 100755 --- a/inventory.example +++ b/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 diff --git a/templates/run-bot.sh b/templates/run-bot.sh index aa18c82..4ec7236 100755 --- a/templates/run-bot.sh +++ b/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