From 8cb296dff1704b8b7247ebe8635a54e8336edb58 Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Thu, 22 Aug 2002 16:36:52 +0000 Subject: Fix search and replace for __WIZ_HOME__ and fix wrongly committed files --- news_wizard/scripts/Newsconf.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'news_wizard/scripts') diff --git a/news_wizard/scripts/Newsconf.pm b/news_wizard/scripts/Newsconf.pm index 158939c0..a0968891 100644 --- a/news_wizard/scripts/Newsconf.pm +++ b/news_wizard/scripts/Newsconf.pm @@ -1,7 +1,7 @@ #!/usr/bin/perl package Newsconf; -require "/usr/share/wizards/common/scripts/Vareqval.pm"; +require "__WIZ_HOME__/common/scripts/Vareqval.pm"; use MDK::Common; use strict; @@ -39,7 +39,7 @@ sub do_it { if (! -f $file) { die "$file not found: $!"}; my $tmp = `mktemp /tmp/Newsconf.XXXXXX` or die "can't make a temp file: $!"; - open(OLD, "< /usr/share/wizards/news_wizard/scripts/config.default") + open(OLD, "< __WIZ_HOME__/news_wizard/scripts/config.default") or die "can't open default: $!"; open(NEW, "> $tmp") or die "can't open $tmp: $!"; @@ -60,7 +60,7 @@ sub do_it { my $file = "/etc/leafnode/crontab"; my $tmp = `mktemp /tmp/Newsconf.XXXXXX` or die "can't make a temp file: $!"; - open(OLD, "< /usr/share/wizards/news_wizard/scripts/news.cron") + open(OLD, "< __WIZ_HOME__/news_wizard/scripts/news.cron") or die "can't open default: $!"; open(NEW, "> $tmp") or die "can't open $tmp: $!"; -- cgit v1.2.1