[yt-svn] commit/yt: MatthewTurk: Adding a note and bailing with root-EUID in install_script.sh.
Bitbucket
commits-noreply at bitbucket.org
Mon Jul 23 13:01:52 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/18b26b831f1e/
changeset: 18b26b831f1e
branch: yt
user: MatthewTurk
date: 2012-07-23 22:01:35
summary: Adding a note and bailing with root-EUID in install_script.sh.
affected #: 1 file
diff -r 5988e7fc0eefbb9944cedc329f4189c592fa9a0a -r 18b26b831f1ea9fbfc5c09341fad84a42dcf5ed1 doc/install_script.sh
--- a/doc/install_script.sh
+++ b/doc/install_script.sh
@@ -56,6 +56,22 @@
# arguments. For instance, "-j4"
MAKE_PROCS=""
+# Make sure we are NOT being run as root
+if [[ $EUID -eq 0 ]]; then
+ echo "******************************************************"
+ echo "* *"
+ echo "* *"
+ echo "* IT IS A BAD IDEA TO RUN THIS SCRIPT AS ROOT!!!! *"
+ echo "* *"
+ echo "* *"
+ echo "******************************************************"
+ echo
+ echo "If you really want to do this, you must manually edit"
+ echo "the script to re-enable root-level installation. Sorry!"
+ exit 1
+fi
+# ...
+
#------------------------------------------------------------------------------#
# #
# Okay, the script starts here. Feel free to play with it, but hopefully #
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list