summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xnfs_wizard/NFS.pm23
1 files changed, 16 insertions, 7 deletions
diff --git a/nfs_wizard/NFS.pm b/nfs_wizard/NFS.pm
index e40ad943..80b94ce6 100755
--- a/nfs_wizard/NFS.pm
+++ b/nfs_wizard/NFS.pm
@@ -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;