Add restarter
Took 2 minutes
This commit is contained in:
parent
3109c44416
commit
5e8f1b27e6
8
restart.sh
Normal file
8
restart.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd /home/tobiash/Woam-Antispam-Bot/ || exit
|
||||
tmux kill-session -t WoamBot
|
||||
git pull --quiet
|
||||
|
||||
tmux new-session -d -s WoamBot
|
||||
tmux send-keys -t WoamBot:0 "cd /home/tobiash/Woam-Antispam-Bot/ && clear && node bot.js" C-m
|
Loading…
x
Reference in New Issue
Block a user