Modify installation path during installation time (relocate some files of a package)

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

 



Hello All,


I have the following problem:


I want to install files in a directory on the target machine, which has
the following naming convention of installation path:
/opt/company/product/config/<hostname>/myconfig.cfg

<hostname> must be the name of the machine where the package is installed.

During the build process of the package this name is unknown and therefore I can not use it in the %files list

%files
/opt/company/product/config/<???????>/myconfig.cfg

Is it possible to use a variable as a placeholder in the %files list,
which is resolved at insallation time ? Like:

%files
/opt/company/product/config/$INSTALL_HOST/myconfig.cfg

I could not find a resolution for this problem.
A rename after installation is possible, but there will be problems with
later update installations. I can not use the features of rpm to manage this.


Thanks for your help

Peter


_______________________________________________ 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