Skip to content

Commit

Permalink
Update make.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sajjad-021 authored Jun 20, 2017
1 parent c5bb466 commit 65098d1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,18 @@ fi

if [ "$1" = "api" ]; then
while true; do
screen -S nohup lua api.lua
screen -S nohup lua api.lua
done
fi

if [ "$1" = "bot" ]; then
while true; do
screen -S nohup ./telegram-cli -s tgGuard.lua
done
COUNTER=0
while [ $COUNTER -lt 5 ]; do
tmux kill-session -t script
tmux new-session -s script "./telegram-cli -s tgGuard.lua"
tmux detach -s script
sleep 1
done
fi

if [ ! -f telegram-cli ]; then
Expand Down

0 comments on commit 65098d1

Please sign in to comment.