summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
authorStew Benedict <stewb@mandriva.org>2002-09-19 21:55:59 +0000
committerStew Benedict <stewb@mandriva.org>2002-09-19 21:55:59 +0000
commit87ecc7e1f8f0f22cc55cc9b3f2e087c9ead540d0 (patch)
tree171bd6064bc3784f35d70fbcaf239274c512df04 /perl-install/standalone
parent40601a9b0862eda424455872ad000863946a1245 (diff)
downloaddrakx-87ecc7e1f8f0f22cc55cc9b3f2e087c9ead540d0.tar
drakx-87ecc7e1f8f0f22cc55cc9b3f2e087c9ead540d0.tar.gz
drakx-87ecc7e1f8f0f22cc55cc9b3f2e087c9ead540d0.tar.bz2
drakx-87ecc7e1f8f0f22cc55cc9b3f2e087c9ead540d0.tar.xz
drakx-87ecc7e1f8f0f22cc55cc9b3f2e087c9ead540d0.zip
Catch non-existant config files on copy.
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-xperl-install/standalone/drakTermServ4
1 files changed, 2 insertions, 2 deletions
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);