Skip to content
Snippets Groups Projects
Commit dec4ff2e authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Duplicate confirmation

parent fe547de0
No related branches found
No related tags found
No related merge requests found
...@@ -82,6 +82,7 @@ print "Press a key to confirm...\n"; ...@@ -82,6 +82,7 @@ print "Press a key to confirm...\n";
$input = trim(fgets(STDIN)); $input = trim(fgets(STDIN));
print "Warning, this operation may result in data loss if it failed.\n"; print "Warning, this operation may result in data loss if it failed.\n";
print "Be sure to have a backup of your LDAP database (With OpenLDAP: slapcat > save.ldif).\n"; print "Be sure to have a backup of your LDAP database (With OpenLDAP: slapcat > save.ldif).\n";
print "Hit Enter to continue or CTRL+C to stop...\n"; print "Hit Enter to continue or CTRL+C to stop...\n";
$input = trim(fgets(STDIN)); $input = trim(fgets(STDIN));
......
...@@ -136,8 +136,6 @@ if ($typeid <= 0) ...@@ -136,8 +136,6 @@ if ($typeid <= 0)
} }
print "Press a key to confirm...";
$input = trim(fgets(STDIN));
print "Hit Enter to continue or CTRL+C to stop...\n"; print "Hit Enter to continue or CTRL+C to stop...\n";
$input = trim(fgets(STDIN)); $input = trim(fgets(STDIN));
......
...@@ -101,8 +101,7 @@ print "----- Options:\n"; ...@@ -101,8 +101,7 @@ print "----- Options:\n";
print "commitiferror=".$forcecommit."\n"; print "commitiferror=".$forcecommit."\n";
print "Mapped LDAP fields=".join(',',$required_fields)."\n"; print "Mapped LDAP fields=".join(',',$required_fields)."\n";
print "\n"; print "\n";
print "Press a key to confirm...";
$input = trim(fgets(STDIN));
print "Hit Enter to continue or CTRL+C to stop...\n"; print "Hit Enter to continue or CTRL+C to stop...\n";
$input = trim(fgets(STDIN)); $input = trim(fgets(STDIN));
......
...@@ -90,7 +90,7 @@ if (! isset($argv[1])) { ...@@ -90,7 +90,7 @@ if (! isset($argv[1])) {
print "Usage: $script_file (nocommitiferror|commitiferror) [ldapserverhost]\n"; print "Usage: $script_file (nocommitiferror|commitiferror) [ldapserverhost]\n";
exit(-1); exit(-1);
} }
$groupid=$argv[3];
if ($argv[1] == 'commitiferror') $forcecommit=1; if ($argv[1] == 'commitiferror') $forcecommit=1;
...@@ -114,8 +114,7 @@ print "----- Options:\n"; ...@@ -114,8 +114,7 @@ print "----- Options:\n";
print "commitiferror=".$forcecommit."\n"; print "commitiferror=".$forcecommit."\n";
print "Mapped LDAP fields=".join(',',$required_fields)."\n"; print "Mapped LDAP fields=".join(',',$required_fields)."\n";
print "\n"; print "\n";
print "Press a key to confirm...";
$input = trim(fgets(STDIN));
print "Hit Enter to continue or CTRL+C to stop...\n"; print "Hit Enter to continue or CTRL+C to stop...\n";
$input = trim(fgets(STDIN)); $input = trim(fgets(STDIN));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment