summaryrefslogtreecommitdiffstats
path: root/news_wizard
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2003-03-02 12:46:22 +0000
committerFlorent Villard <warly@mandriva.com>2003-03-02 12:46:22 +0000
commitfb900a0d0b5e9db9b1e8330152cfbe29a0b6a9c9 (patch)
treeae59719bf71004f9811a39d31d0c5a5b8047b6e8 /news_wizard
parentf3608ba72c38db1a2b7dc21e20f396064c988b2b (diff)
downloaddrakwizard-fb900a0d0b5e9db9b1e8330152cfbe29a0b6a9c9.tar
drakwizard-fb900a0d0b5e9db9b1e8330152cfbe29a0b6a9c9.tar.gz
drakwizard-fb900a0d0b5e9db9b1e8330152cfbe29a0b6a9c9.tar.bz2
drakwizard-fb900a0d0b5e9db9b1e8330152cfbe29a0b6a9c9.tar.xz
drakwizard-fb900a0d0b5e9db9b1e8330152cfbe29a0b6a9c9.zip
start nfs server if not running at the end of nfs wizard
Diffstat (limited to 'news_wizard')
-rw-r--r--news_wizard/scripts/Newsconf.pm11
1 files changed, 6 insertions, 5 deletions
diff --git a/news_wizard/scripts/Newsconf.pm b/news_wizard/scripts/Newsconf.pm
index ddd99f6f..10b6bfa6 100644
--- a/news_wizard/scripts/Newsconf.pm
+++ b/news_wizard/scripts/Newsconf.pm
@@ -61,11 +61,12 @@ sub do_it {
$_;
} cat_("__WIZ_HOME__/news_wizard/scripts/config.default"));
$file = "/var/spool/cron/news";
- -f $file and MDK::Common::cp_af($file, "/etc/leafnode/crontab");
- $file = "/etc/leafnode/crontab";
- MDK::Common::cp_af($file, $file . ".orig");
- my $file = "/etc/leafnode/crontab";
- output($file, map {
+ my $file_c = "/etc/leafnode/crontab";
+ if (-f $file) {
+ MDK::Common::cp_af($file, $file_c);
+ MDK::Common::cp_af($file, $file . ".orig");
+ }
+ output($file_c, map {
s|__freq__|$freq|g;
$_;
} cat_("__WIZ_HOME__/news_wizard/scripts/news.cron"));