isula-build:use pre instead of pretrans for groupadd
reason: mv groupadd from pretrans to pre to prevent install failed when doing: `yum install -y isula-build --installroot /root/test`. This could fail because there is no **sh** command then. %Pretrans will run the script before any package installed, so it is not proper to do `groupadd` in the Pretrans step. Signed-off-by: DCCooper <1866858@gmail.com>
This commit is contained in:
parent
1bce395b8d
commit
95e1d9b62c
@ -1 +1 @@
|
|||||||
0.9.5-12
|
0.9.5-13
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
9d87e2bf8f9cdced75d00a2931d98acba35fd355
|
8742b763287fdb565d6044154318a2447bad171f
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: isula-build
|
Name: isula-build
|
||||||
Version: 0.9.5
|
Version: 0.9.5
|
||||||
Release: 12
|
Release: 13
|
||||||
Summary: A tool to build container images
|
Summary: A tool to build container images
|
||||||
License: Mulan PSL V2
|
License: Mulan PSL V2
|
||||||
URL: https://gitee.com/openeuler/isula-build
|
URL: https://gitee.com/openeuler/isula-build
|
||||||
@ -63,7 +63,7 @@ install -p -m 600 __isula-build %{buildroot}/usr/share/bash-completion/completio
|
|||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%pretrans
|
%pre
|
||||||
if ! getent group isula > /dev/null; then
|
if ! getent group isula > /dev/null; then
|
||||||
groupadd --system isula
|
groupadd --system isula
|
||||||
fi
|
fi
|
||||||
@ -85,6 +85,12 @@ fi
|
|||||||
/usr/share/bash-completion/completions/isula-build
|
/usr/share/bash-completion/completions/isula-build
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 14 2021 DCCooper <1866858@gmail.com> - 0.9.5-13
|
||||||
|
- Type:bugfix
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:restart
|
||||||
|
- DESC:use pre instead of pretrans for groupadd
|
||||||
|
|
||||||
* Fri Sep 03 2021 xingweizheng <xingweizheng@huawei.com> - 0.9.5-12
|
* Fri Sep 03 2021 xingweizheng <xingweizheng@huawei.com> - 0.9.5-12
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user