Changes in the getent command
This commit is contained in:
parent
4b1df610cc
commit
7b6490cfcc
@ -153,8 +153,8 @@ rm -f $RPM_BUILD_ROOT%{_pkgdocdir}/contrib/multilevel-init.patch
|
|||||||
rm -rf $RPM_BUILD_ROOT%{_pkgdocdir}/sample/sample-keys
|
rm -rf $RPM_BUILD_ROOT%{_pkgdocdir}/sample/sample-keys
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group openvpn &>/dev/null || groupadd -r openvpn
|
getent group openvpn >/dev/null 2>&1 || groupadd -r openvpn
|
||||||
getent passwd openvpn &>/dev/null || \
|
getent passwd openvpn >/dev/null 2>&1 || \
|
||||||
/usr/sbin/useradd -r -g openvpn -s /sbin/nologin -c OpenVPN \
|
/usr/sbin/useradd -r -g openvpn -s /sbin/nologin -c OpenVPN \
|
||||||
-d /etc/openvpn openvpn
|
-d /etc/openvpn openvpn
|
||||||
exit 0
|
exit 0
|
||||||
@ -205,6 +205,9 @@ done
|
|||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
* Fri Dec 8 2023 Elkhan Mammadli <elkhan.mammadli@protonmail.com> - 2.5.9-3
|
||||||
|
- Changes in the commands with 2>&1 (%% pre section)
|
||||||
|
|
||||||
* Wed Dec 6 2023 Elkhan Mammadli <elkhan.mammadli@protonmail.com> - 2.5.9-3
|
* Wed Dec 6 2023 Elkhan Mammadli <elkhan.mammadli@protonmail.com> - 2.5.9-3
|
||||||
- Added Requires(pre): /usr/sbin/groupadd
|
- Added Requires(pre): /usr/sbin/groupadd
|
||||||
- Added exit 0 to the %%pre section
|
- Added exit 0 to the %%pre section
|
||||||
|
Loading…
Reference in New Issue
Block a user