Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
746da53b
Commit
746da53b
authored
Oct 16, 2016
by
Leigh B Stoller
Browse files
Add -s option to add authorities to the SA database.
parent
5317a6e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/scripts/addauthority.in
View file @
746da53b
#!/usr/bin/perl -w
#
# Copyright (c) 2008-2011 University of Utah and the Flux Group.
# Copyright (c) 2008-2011
, 2016
University of Utah and the Flux Group.
#
# {{{GENIPUBLIC-LICENSE
#
...
...
@@ -38,12 +38,13 @@ use Getopt::Std;
#
sub
usage
()
{
print
"
Usage: addauthority [-c
] [-a
] [-n] <certfile> <type> [url]
\n
";
print
"
Usage: addauthority [-c
| -a | -s
] [-n] <certfile> <type> [url]
\n
";
exit
(
1
);
}
my
$optlist
=
"
acnf
";
my
$optlist
=
"
acnf
s
";
my
$asch
=
0
;
my
$asam
=
0
;
my
$assa
=
0
;
my
$disable
=
0
;
my
$force
=
0
;
...
...
@@ -63,6 +64,9 @@ if (defined($options{"c"})) {
if
(
defined
(
$options
{"
a
"}))
{
$asam
=
1
;
}
if
(
defined
(
$options
{"
s
"}))
{
$assa
=
1
;
}
if
(
defined
(
$options
{"
f
"}))
{
$force
=
1
;
}
...
...
@@ -80,6 +84,9 @@ if ($asch) {
elsif
(
$asam
)
{
$GENI_DBNAME
=
"
geni-cm
";
}
elsif
(
$assa
)
{
$GENI_DBNAME
=
"
geni
";
}
# Now we can load the libraries after setting the proper DB.
use
lib
'
@prefix@/lib
';
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment