remove value '/root/bin' in var PATH

This commit is contained in:
openeuler-basic 2020-02-17 19:49:37 +08:00
parent 7ce0d86331
commit d19017aed4

View File

@ -3,7 +3,7 @@
Summary : config enviroment for obs compile Summary : config enviroment for obs compile
Name : obs-env Name : obs-env
Version : 1.0 Version : 1.0
Release : 4 Release : 5
License : GPLv2 License : GPLv2
Group : System Environment/Shells Group : System Environment/Shells
Source0 : https://gitee.com/src-openeuler/obs-env/raw/master/obs-env-1.0.tar.bz2 Source0 : https://gitee.com/src-openeuler/obs-env/raw/master/obs-env-1.0.tar.bz2
@ -28,17 +28,17 @@ config enviroment for obs compile
%post %post
if [ -f /etc/profile ]; then if [ -f /etc/profile ]; then
echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin" >> /etc/profile echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" >> /etc/profile
source /etc/profile source /etc/profile
fi fi
if [ -f /home/abuild/.bashrc ]; then if [ -f /home/abuild/.bashrc ]; then
echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin" >> /home/abuild/.bashrc echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" >> /home/abuild/.bashrc
source /home/abuild/.bashrc source /home/abuild/.bashrc
fi fi
if [ -f /root/.bashrc ]; then if [ -f /root/.bashrc ]; then
echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin" >> /root/.bashrc echo "export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin" >> /root/.bashrc
source /root/.bashrc source /root/.bashrc
fi fi
@ -49,6 +49,9 @@ fi
%files %files
%changelog %changelog
* Mon Feb 17 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0-5
- remove value '/root/bin' in var PATH
* Tue Jan 14 2020 gulining<gulining1@huawei.com> - 1.0-4 * Tue Jan 14 2020 gulining<gulining1@huawei.com> - 1.0-4
- change source url - change source url