summaryrefslogtreecommitdiffstats
path: root/ldap_wizard
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2004-08-13 05:27:54 +0000
committerAntoine Ginies <aginies@mandriva.com>2004-08-13 05:27:54 +0000
commit39e18f4c1bf181f9bbf2de8e89d73e41350501ce (patch)
tree98eccd44d535b2fac33731dadf71921a32565248 /ldap_wizard
parent863f9af29aff28ca85bb4af825ca92f227671eb7 (diff)
downloaddrakwizard-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')
-rw-r--r--ldap_wizard/Ldap.pm3
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/*")
}