RE: %config(noreplace)

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

 



Thanks for that info so that spawns a new question.

How do I copy the file if it doesn't exist and not overlay it if it does
exists? 

Or does rpm automatically handle that for you when you are do a 

install -m 755 start_apache $RPM_BUILD_ROOT%{_sysconfdir}/start_apache

I thought it just overlaid the file.

-----Original Message-----
From: rpm-list-bounces@xxxxxxxxxx [mailto:rpm-list-bounces@xxxxxxxxxx]
On Behalf Of Jos Vos
Sent: Thursday, March 03, 2005 11:43 AM
To: RPM Package Manager
Subject: Re: %config(noreplace)

On Thu, Mar 03, 2005 at 11:38:09AM -0500, Lehman, Jason (Registrar's
Office) wrote:

> I thought you used %config(noreplace) to say if this file exists don't

> copy it over but I thought it also said if it doesn't exist create it.

This is all about when you *install* the package.

> But I got an error saying that the file doesn't exist in the location 
> specified by the %config(noreplace) so I guess I am wrong.

This is an error you get when you *build* the package, at what time your
$RPM_BUILD_ROOT/etc/rc.d/init.d/start_apache of course should exist.

-- 
--    Jos Vos <jos@xxxxxx>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204

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

_______________________________________________
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