Browse Source

rootcheck

Paul Klumpp 12 năm trước cách đây
mục cha
commit
9616314bc3
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      q2compile/make_and_put_all.sh

+ 8 - 0
q2compile/make_and_put_all.sh

@@ -5,6 +5,14 @@ cwd=$(pwd)
 q2srv=$cwd/../q2srv/
 cd $cwd
 
+
+if [ "${USER}" == "root" ]; then
+	echo "Nono! Don't run this as root! Don't!"
+	echo "Switch to a normal user!"
+	echo
+	exit
+fi
+
 function checkinstalled {
 	if [ "$1" != "" ]; then
 		woot=$(which "$1" 2> /dev/null)