[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Deploying config files revisited



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]