diff options
author | Antoine Ginies <aginies@mandriva.com> | 2004-08-13 05:27:54 +0000 |
---|---|---|
committer | Antoine Ginies <aginies@mandriva.com> | 2004-08-13 05:27:54 +0000 |
commit | 39e18f4c1bf181f9bbf2de8e89d73e41350501ce (patch) | |
tree | 98eccd44d535b2fac33731dadf71921a32565248 /ldap_wizard/Ldap.pm | |
parent | 863f9af29aff28ca85bb4af825ca92f227671eb7 (diff) | |
download | drakwizard-39e18f4c1bf181f9bbf2de8e89d73e41350501ce.tar drakwizard-39e18f4c1bf181f9bbf2de8e89d73e41350501ce.tar.gz drakwizard-39e18f4c1bf181f9bbf2de8e89d73e41350501ce.tar.bz2 drakwizard-39e18f4c1bf181f9bbf2de8e89d73e41350501ce.tar.xz drakwizard-39e18f4c1bf181f9bbf2de8e89d73e41350501ce.zip |
quit if slapcat failed
Diffstat (limited to 'ldap_wizard/Ldap.pm')
-rw-r--r-- | ldap_wizard/Ldap.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ldap_wizard/Ldap.pm b/ldap_wizard/Ldap.pm index 295b56d4..52db1766 100644 --- a/ldap_wizard/Ldap.pm +++ b/ldap_wizard/Ldap.pm @@ -340,7 +340,8 @@ sub do_it_user_add { } sub sav_conf { - system("slapcat -l /root/ldap-sav.ldiff"); + my $cmd = "slapcat -l /root/ldap-sav.ldiff"; + system($cmd) == 0 or !$::testing and err_dialog(N("Error!"), N("%s Failed", $cmd)); system("cp /etc/openldap/slapd.conf /root/"); system("rm -fr /var/lib/ldap/*") } |