Skip to content

Commit 0309289

Browse files
authored
Username block root
1 parent 9a3d9af commit 0309289

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sinusbot_installer.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,9 @@ else
717717
if [ -n "$SINUSBOTUSER" ]; then
718718
greenMessage "Your sinusbot user is: $SINUSBOTUSER"
719719
fi
720+
if [ $SINUSBOTUSER == "root" ]; then
721+
redMessage "Error. Your username is invalid. Don't use root"!
722+
fi
720723
done
721724

722725
if [ "$(id $SINUSBOTUSER 2>/dev/null)" == "" ]; then

0 commit comments

Comments
 (0)