[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: files required for installation post processing
- From: Paul Heinlein <heinlein cse ogi edu>
- To: rpm-list redhat com
- Subject: Re: files required for installation post processing
- Date: Wed, 13 Aug 2003 15:30:53 -0700 (PDT)
On Wed, 13 Aug 2003, Howard G Page wrote:
> Any non-ugly way to include files in an rpm that can be used during
> post processing (i.e. in the %post script) and can be deleted when
> finished?
I've never attempted this sort of thing, so this is shooting from the
hip, but it seems to me you could do something like
%files
%config(missingok) /var/local/%{name}/script.sh
%config(missingok) /var/local/%{name}/data.txt
%post
cd /var/local/%{name}
/bin/sh script.sh < data.txt
if test $? -eq 0; then
/bin/rm -f script.sh data.txt
cd ..
/bin/rmdir %{name}
fi
It's hacky, to be sure, but it seems to my (oft feeble) mind that it'd
work as expected.
-- Paul Heinlein <heinlein@cse.ogi.edu>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]