Stop bot from running as root.
This commit is contained in:
parent
c0ab593614
commit
28e505efae
4
bot.sh
4
bot.sh
@ -1,5 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$(whoami)" = "root" ]; then
|
||||||
|
echo "This bot should not be ran as root."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
[ -f functions.sh ] && source functions.sh
|
[ -f functions.sh ] && source functions.sh
|
||||||
[ -f bot.cfg ] && source bot.cfg
|
[ -f bot.cfg ] && source bot.cfg
|
||||||
input=".botinput"
|
input=".botinput"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user