- Deal with httpsd.conf.bak files, like we did for apache2 previously in the day.

This commit is contained in:
Clement Laforet 2004-11-29 20:14:52 +00:00
parent 6b12652741
commit 5631a1f988
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122763
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,15 @@
--- src/support/apxs.pl.orig Mon Nov 29 21:05:12 2004
+++ src/support/apxs.pl Mon Nov 29 21:05:56 2004
@@ -604,12 +604,10 @@
print FP $content;
close(FP);
if ($^O ne "MSWin32") {
- push(@cmds, "cp $cfgbase.conf $cfgbase.conf.bak");
push(@cmds, "cp $cfgbase.conf.new $cfgbase.conf");
push(@cmds, "rm $cfgbase.conf.new");
} else {
$cfgbase =~ s|/|\\|g;
- push(@cmds, "copy \"$cfgbase.conf\" \"$cfgbase.conf.bak\"");
push(@cmds, "copy \"$cfgbase.conf.new\" \"$cfgbase.conf\"");
push(@cmds, "del \"$cfgbase.conf.new\"");
}

View File

@ -1,3 +1,4 @@
@comment $FreeBSD$
bin/checkgid
bin/dbmmanage
bin/htdigest
@ -630,7 +631,8 @@ www/icons/world1.png
www/icons/world2.gif
www/icons/world2.png
@exec mkdir -p %D/www/proxy
@dirrm etc/apache
@unexec rm -f %D/etc/apache2/httpd.conf.bak 2> /dev/null || true
@unexec rmdir %D/etc/apache 2> /dev/null || true
@dirrm include/apache/xml
@dirrm include/apache
@dirrm libexec/apache