This repository has been archived by the owner on Feb 1, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
71 additions
and
108 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
version=`cat bot.py | head -3 | tail -1| awk '{print $3}' | sed "s/^\([\"']\)\(.*\)\1\$/\2/g"` | ||
|
||
echo "[+] Starting test of v$version" | ||
|
||
cp -f ./bot.py /var/softupdated/bot.py && kill `ps -ax|grep bot.py|head -1|awk '{print $1}'` && echo "[#] Bot copied and reloaded." | ||
|
||
sleep 2 | ||
|
||
logfile=`ls -t /var/softupdated | head -1` | ||
echo "[#] Tailing Logfile... $logfile" | ||
|
||
tail -f /var/softupdated/$logfile | ||
|
||
echo "[√] Done v$version test. Bot still running." | ||
exit 0 |