[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Deploying config files revisited
- From: Enrique Perez-Terron <enrio online no>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: Deploying config files revisited
- Date: Thu, 12 Aug 2004 01:01:23 +0200
On Wed, 2004-08-11 at 19:54, W. Eric Trull wrote:
> files are owned by another package. I have a similar situation in which the
> config files *are* owned by another package.
>
[snip]
> During the installation of my package I'd like to move the current
> /etc/ntc.conf and /etc/ntp/step-tickers aside and then install my versions.
> Anybody know how to get around the fact that the files are owned by another
> package and suggestions on how to move the current files before installing
> mine?
Could you write a postinstall scriptlet to do this?
Install your specific files in /usr/share/your_package/*, and in the
post-install scriptlet,
mv -f /etc/ntp.conf /etc/ntp.conf.rpmsave || true
cp /usr/share/your_package/ntp.conf /etc/ntp.conf
mv -f /etc/ntp/step-tickers /etc/ntp/step-tickers.rpmsave || true
cp /usr/share/your_package/step-tickers /etc/ntp/step-tickers
-Enrique
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]