Author: arkurth
Date: Mon Oct 19 18:20:00 2009
New Revision: 826747

URL: http://svn.apache.org/viewvc?rev=826747&view=rev
Log:
VCL-164
Updated gen-node-key.sh. Changed how script checks if it's being run as root to 
use whoami.

Modified:
    incubator/vcl/trunk/managementnode/bin/gen-node-key.sh

Modified: incubator/vcl/trunk/managementnode/bin/gen-node-key.sh
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/bin/gen-node-key.sh?rev=826747&r1=826746&r2=826747&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/bin/gen-node-key.sh (original)
+++ incubator/vcl/trunk/managementnode/bin/gen-node-key.sh Mon Oct 19 18:20:00 
2009
@@ -65,7 +65,7 @@
 KEY_PATH=$2
 
 # Make sure root is running this script
-if [ `env |grep -ic "^USERNAME=root$"` -ne 1 ];
+if [ `whoami | grep -ic "root"` -ne 1 ];
 then
        die "this script must be run as root"
 fi


Reply via email to