Preserve files/directories for rpm upgrade in .spec file(rpmbuild) -
i wrote .spec file on rhel , building rpm using rpmbuild. need ideas handle below situation.
my rpm creates empty logs directory when installs first time within installation folder below
/opt/myinstallation-1.0.0-1/some executables /opt/myinstallation-1.0.0-1/lib/carries shared objects(.so files) /opt/myinstallation-1.0.0-1/config/carries xml , custom configuration files(.xml, etc) /opt/myinstallation-1.0.0-1/log--->this application writes logs
when rpm upgrdes myinstallation-1.0.0-1 myinstallation-1.0.0-2 example, right wanted.
but, question how preserve log files written in myinstallation-1.0.0-1? or exactly re-create log directory myinstallation-1.0.0-2.
i believe if tag directory %config
, expected user have files in there, leave alone.
rpmbuild rpm-spec
No comments:
Post a Comment