Added line to the pre section, fix attempt 2
This commit is contained in:
parent
7b6490cfcc
commit
e2ddcc48f7
@ -153,8 +153,9 @@ 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 2>&1 || groupadd -r openvpn
|
#!/bin/sh -x
|
||||||
getent passwd openvpn >/dev/null 2>&1 || \
|
getent group openvpn &>/dev/null || groupadd -r openvpn
|
||||||
|
getent passwd openvpn &>/dev/null || \
|
||||||
/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,8 +206,8 @@ done
|
|||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
* Fri Dec 8 2023 Elkhan Mammadli <elkhan.mammadli@protonmail.com> - 2.5.9-3
|
* Fri Dec 11 2023 Elkhan Mammadli <elkhan.mammadli@protonmail.com> - 2.5.9-3
|
||||||
- Changes in the commands with 2>&1 (%% pre section)
|
- Added line to the %%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
|
||||||
|
Loading…
Reference in New Issue
Block a user