I want to automatically add a new path to the $PATH variable each time when my RPM package is installed.
I tried to use a post-installation script in the my RPM. Here is the part of RPM spec file containing this post installation script:
%post PATH=$PATH:/usr/app/mdg/bin export PATH
But after successful installation the $PATH doesn't changed. Please help me with that issue.