I need to add one path to the PATH variable after installing the RPM package.
To do this, I build this RPM with a postinstall script that runs after installation.
The part of the RPM spec file that contains this script is as follows:
%postPATH=$PATH:/usr/app/mdg/binexport PATH However, after the successful installation of the package $ PATH does not change.
Please tell me how to solve this problem.