delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2002/06/17/12:41:52

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Mail-Followup-To: cygwin-apps AT cygwin DOT com
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
Message-ID: <3D0E114A.9040004@ece.gatech.edu>
Date: Mon, 17 Jun 2002 12:41:46 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us
MIME-Version: 1.0
To: "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de>
CC: cygwin-apps AT cygwin DOT com
Subject: Re: Apache -5 install clobbers /etc/apache files
References: <174868800669 DOT 20020617104226 AT familiehaase DOT de> <51871816165 DOT 20020617113241 AT familiehaase DOT de>

Gerrit P. Haase wrote:

>>All my files in /etc/apache (besides httpd.conf~) were clobbered
>>when installing 1.13.24-5 over 1.13.24-1.  How can this happen???
>>
> 
> To be exact, the -1 version removed it during uninstall.
> Well, shit happens....

No, this is a packaging *error*.  Packages (like apache) should NOT 
install configuration files, for precisely this reason.  They should 
install "default" files, and then cp them IFF the "real" file doesn't 
exist.

e.g.

apache-VER-REL.tar.bz2 contains
   /etc/httpd.conf.default
   /etc/postinstall/apache.sh

apache.sh:
--------
#!/bin/sh
if [ ! -f /etc/httpd.conf ] ; then
   cp /etc/httpd.conf.default /etc/httpd.conf
fi
--------

--Chuck

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019