[freenet-cvs] r20963 - trunk/apps/new_installer/res/unix/bin

nextgens at freenetproject.org nextgens at freenetproject.org
Fri Jul 4 08:48:02 UTC 2008


Author: nextgens
Date: 2008-07-04 08:48:02 +0000 (Fri, 04 Jul 2008)
New Revision: 20963

Modified:
   trunk/apps/new_installer/res/unix/bin/setup.sh
Log:
new_installer: add an other check to prevent the installer from being executed as r00t

Modified: trunk/apps/new_installer/res/unix/bin/setup.sh
===================================================================
--- trunk/apps/new_installer/res/unix/bin/setup.sh	2008-07-04 00:11:01 UTC (rev 20962)
+++ trunk/apps/new_installer/res/unix/bin/setup.sh	2008-07-04 08:48:02 UTC (rev 20963)
@@ -22,6 +22,13 @@
 	exit 0
 fi
 
+if test "X`id -u`" = "X0"
+then
+	echo "The installer isn\'t meant to be run as root"
+	touch .isInstalled
+	exit 0
+fi
+
 # Hack to use a generic template for plugins
 touch plug
 




More information about the cvs mailing list