remove value '/root/bin' in var PATH
This commit is contained in:
parent
7ce0d86331
commit
d19017aed4
11
obs-env.spec
11
obs-env.spec
@ -3,7 +3,7 @@
|
||||
Summary : config enviroment for obs compile
|
||||
Name : obs-env
|
||||
Version : 1.0
|
||||
Release : 4
|
||||
Release : 5
|
||||
License : GPLv2
|
||||
Group : System Environment/Shells
|
||||
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
|
||||
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
|
||||
fi
|
||||
|
||||
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
|
||||
fi
|
||||
|
||||
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
|
||||
fi
|
||||
|
||||
@ -49,6 +49,9 @@ fi
|
||||
%files
|
||||
|
||||
%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
|
||||
- change source url
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user