Skip to content

Commit

Permalink
Add a warning message to setup_wargame.sh (it looks like someone's ac…
Browse files Browse the repository at this point in the history
…tually made this mistake in IRC recently, but it's probably a good idea to have a warning even if it turns out that they're ok).
  • Loading branch information
aweinstock314 committed Oct 9, 2015
1 parent 0ffa2ad commit 7e5116a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions setup_wargame.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@
#########################################
# Pre-install checks
#########################################

# Warn the user about running this on their host machine
# (because it makes various invasive settings-changes, and runs a ton of vulnerable services)
echo -e "\x1b[31;1mDON'T RUN THIS ON YOUR REAL COMPUTER\x1b[0m"
echo -e "If you're running this on your real computer, \x1b[31;1mpress control-c NOW\x1b[0m to stop this script."
sleep 10

if [ "$USER" != 'root' ]; then
echo "ERROR: Script must be run using root!"
exit
fi

echo -e "\x1b[32;1mProceeding with the installation.\x1b[0m"

#########################################
# Per-Machine Install Variables
#########################################
Expand Down

0 comments on commit 7e5116a

Please sign in to comment.