Skip to content

Bambarello/xxtips

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

xxtips

Scripts for automate XX node and gateway restarts

Installation

  1. Create telegram bot and get Api Token (via @BotFather in telegram)
  2. Send to your new bot command /start
  3. Clone repo to your node and gateway
cd $HOME && git clone -v https://github.com/ama31337/xxtips.git
  1. Edit Send_msg_toTelBot.sh with your bot API and your telegram id on both machines
  2. Edit online_check.sh with your node URL
  3. Add your user to sudoers to execute node restart w/o password prompt
sudo echo "$USER  ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
  1. Run script to create crontab tasks on node
cd $HOME/xxtips/scripts && ./add_to_cron_node.sh

and on gateway

cd $HOME/xxtips/scripts && ./add_to_cron_gateway.sh
  1. Check crontab
crontab -l
  1. Done

About

tips for XX network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%