Instantly share code, notes, and snippets.

@Mte90 Mte90/update-bot.sh
Last active Jan 31, 2019

Embed
What would you like to do?
Auto update Mozilla Italia bot and restart them on unix system
#!/usr/bin/env bash
cd /opt/mozita/
pkill -f antispam_mozita.py
cd ./mozitaantispam_bot/
git pull
nohup python3 ./antispam_mozita.py &
cd ../
pkill -f myuserid_mozita.py
cd ./mozitamyuserid_bot/
git pull
nohup python3 ./myuserid_mozita.py &
cd ../
pkill -f hub_mozita.py
cd ./mozitahub_bot/
git pull
nohup python3 ./hub_mozita.py &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment