From 87ecc7e1f8f0f22cc55cc9b3f2e087c9ead540d0 Mon Sep 17 00:00:00 2001 From: Stew Benedict Date: Thu, 19 Sep 2002 21:55:59 +0000 Subject: Catch non-existant config files on copy. --- perl-install/standalone/drakTermServ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/standalone/drakTermServ b/perl-install/standalone/drakTermServ index cee51ed2b..b40a92dd4 100755 --- a/perl-install/standalone/drakTermServ +++ b/perl-install/standalone/drakTermServ @@ -1009,7 +1009,7 @@ sub enable_ts { } my $buff_index = toggle_chkconfig("on", "dhcpd", 2); $buff[$buff_index] = "\tSetting up default /etc/exports...\n"; - cp_af("/etc/exports", "/etc/exports.mdkTS"); + cp_af("/etc/exports", "/etc/exports.mdkTS") if (-e "/etc/exports"); open(FHANDLE, "> /etc/exports"); print FHANDLE "#/etc/exports - generated by drakTermServ\n\n"; print FHANDLE "/\t(ro,all_squash)\n"; @@ -1045,7 +1045,7 @@ sub disable_ts { cp_af("/etc/dhcpd.conf.mdkTS", "/etc/dhcpd.conf") if (-e "/etc/dhcpd.conf.mdkTS"); my $buff_index = toggle_chkconfig("off", "dhcpd", 2); $buff[$buff_index] = "\tRestoring default /etc/exports...\n"; - cp_af("/etc/exports.mdkTS", "/etc/exports"); + cp_af("/etc/exports.mdkTS", "/etc/exports") if (-e "/etc/exports.mdkTS"); $buff_index = toggle_chkconfig("off", "clusternfs", $buff_index+1); $buff_index = toggle_chkconfig("off", "tftp", $buff_index); $buff_index = service_change("xinetd", "restart", $buff_index); -- cgit v1.2.1