Commit f557ea3a authored by Robert Ricci's avatar Robert Ricci

Added a check to make sure it gets run as root.

parent b1e28334
......@@ -2,6 +2,15 @@
use English;
use Getopt::Std;
#
# This should run as root to make sure that it has permission to reboot nodes
# (since only root is allowed to power cycle nodes at any time - it's time-
# limited for anyone else)
#
if ($UID != 0) {
die "This should only be run as root!\n";
}
#
# Look for nodes to reload.
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment