@@ -98,12 +98,20 @@ $o->{pages} = { post => \&do_it, next => 'end' }, - end => { - name => N("Congratulations") . "\n\n" . N("The wizard successfully configured your NFS Server"), - end => 1, - next => 0 -}, -}; + end => { + name => N("Congratulations") . "\n\n" . N("The wizard successfully configured your NFS Server"), + end => 1, + next => 0 + }, + error_end => { + name => N("Failed"), + data => [ { label => N("Relaunch drakwizard, and try to change some parameters.") } ], + no_back => 1, + end => 1, + next => 0, + }, + + }; sub new { my ($class) = @_; @@ -151,7 +159,8 @@ sub do_it { substInFile { s|^(?!#).*$o->{var}{wiz_nfs_dir}\s.*|#$&| } $file; append_to_file($file, $line); system("/usr/sbin/exportfs -a"); - services::start('nfs') if services::is_service_running('nfs') + services::start('nfs') if services::is_service_running('nfs'); + check_started('nfsd'); } 1; |