Commit 6b4aa369 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add check to make sure script is run as root.

parent 8d591424
......@@ -48,6 +48,14 @@ use GeniCM;
use Genixmlrpc;
use GeniCertificate;
# We don't want to run this script unless its the real version.
if ($EUID != 0) {
die("*** $0:\n".
" Must be root! Maybe its a development version?\n");
# Parse command arguments. Once we return from getopts, all that should be
# left are the required arguments.
Supports Markdown
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