Author: rmeggins
Update of /cvs/dirsec/adminserver/admserv/newinst/src
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25199
Modified Files:
remove-ds-admin.pl.in
Log Message:
actually add the -y argument
Index: remove-ds-admin.pl.in
===================================================================
RCS file: /cvs/dirsec/adminserver/admserv/newinst/src/remove-ds-admin.pl.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- remove-ds-admin.pl.in 27 Feb 2009 14:33:27 -0000 1.1
+++ remove-ds-admin.pl.in 27 Feb 2009 14:52:05 -0000 1.2
@@ -45,6 +45,7 @@
my $i = 0;
my $force = "";
+my $seeny;
# load args from the command line
while ($i <= $#ARGV) {
@@ -52,12 +53,18 @@
$force = 1;
} elsif ("$ARGV[$i]" eq "-d") {
$Util::debuglevel++;
+ } elsif ( "$ARGV[$i]" eq "-y" ) {
+ $seeny = 1;
} else {
&usage; exit(1);
}
$i++;
}
+if (!$seeny) {
+ &usage; exit(1);
+}
+
my $baseconfigdir = $ENV{DS_CONFIG_DIR} || "@instconfigdir@";
my @instances = ();
my @errs;