Оценка MySQL,
When you're adding the path in the RPM's post-script, it is only being set for the duration of the installation shell.
Within your RPM, you want to install a custom.sh
file under /etc/profile.d/
.
# cat /etc/profile.d/custom.sh
#!/bin/bash
PATH=$PATH:/usr/app/mdg/bin
export PATH
If you're using CSH, the file should be named custom.csh
.
Просто добавьте мягкую ссылку в путь бина вместо изменения переменной окружения:
%install ln -s /usr/app/mdg/bin/your-program /usr/bin your-program