fix env restore bug

This commit is contained in:
xyn-coder 2023-10-17 14:55:20 +08:00
parent 6e137beff2
commit d40de56d83
2 changed files with 7 additions and 2 deletions

View File

@ -95,7 +95,7 @@ index 0000000..15f6311
+{
+ # 使用环境变量执行恢复
+ source /etc/profile >> /dev/null
+ if [ "$SELINUX_FLAG" -eq 0 ] || [ "$SELINUX_FLAG" -eq 1 ]; then
+ if [ "x$SELINUX_FLAG" == "x0" ] || [ "x$SELINUX_FLAG" == "x1" ]; then
+ setenforce "${SELINUX_FLAG}"
+ else
+ echo "/etc/profile have no value: SELINUX_FLAG"

View File

@ -11,7 +11,7 @@ Summary: a building tool for DVD ISO making and ISO cutting
License: Mulan PSL v2
Group: System/Management
Version: 2.0.3
Release: 8
Release: 9
BuildRoot: %{_tmppath}/%{name}
Source: https://gitee.com/openeuler/oemaker/repository/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
@ -135,6 +135,11 @@ rm -rf %{buildroot}
rm -rf $RPM_BUILD_DIR/%{name}
%changelog
* Tue Oct 17 2023 xiangyuning <xiangyuning@huawei.com> - 2.0.3-9
- ID:NA
- SUG:NA
- DESC: fix env restore bug
* Tue Jun 13 2023 zhaotianyang <zhaotianyang4@huawei.com> - 2.0.3-8
- ID:NA
- SUG:NA