Re: Deploying config files revisited

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

 



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


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux