Skip to content

Commit

Permalink
Fix: Duplicate confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 5, 2014
1 parent fe547de commit dec4ff2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions scripts/members/sync_members_dolibarr2ldap.php
Expand Up @@ -82,6 +82,7 @@
$input = trim(fgets(STDIN));
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 "Hit Enter to continue or CTRL+C to stop...\n";
$input = trim(fgets(STDIN));

Expand Down
2 changes: 0 additions & 2 deletions scripts/members/sync_members_ldap2dolibarr.php
Expand Up @@ -136,8 +136,6 @@
}


print "Press a key to confirm...";
$input = trim(fgets(STDIN));
print "Hit Enter to continue or CTRL+C to stop...\n";
$input = trim(fgets(STDIN));

Expand Down
3 changes: 1 addition & 2 deletions scripts/user/sync_groups_ldap2dolibarr.php
Expand Up @@ -101,8 +101,7 @@
print "commitiferror=".$forcecommit."\n";
print "Mapped LDAP fields=".join(',',$required_fields)."\n";
print "\n";
print "Press a key to confirm...";
$input = trim(fgets(STDIN));

print "Hit Enter to continue or CTRL+C to stop...\n";
$input = trim(fgets(STDIN));

Expand Down
5 changes: 2 additions & 3 deletions scripts/user/sync_users_ldap2dolibarr.php
Expand Up @@ -90,7 +90,7 @@
print "Usage: $script_file (nocommitiferror|commitiferror) [ldapserverhost]\n";
exit(-1);
}
$groupid=$argv[3];

if ($argv[1] == 'commitiferror') $forcecommit=1;


Expand All @@ -114,8 +114,7 @@
print "commitiferror=".$forcecommit."\n";
print "Mapped LDAP fields=".join(',',$required_fields)."\n";
print "\n";
print "Press a key to confirm...";
$input = trim(fgets(STDIN));

print "Hit Enter to continue or CTRL+C to stop...\n";
$input = trim(fgets(STDIN));

Expand Down

0 comments on commit dec4ff2

Please sign in to comment.