mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
create zerotier-one user via rpm
This commit is contained in:
parent
d2f897f8de
commit
748ad8a978
1 changed files with 9 additions and 0 deletions
|
@ -18,6 +18,7 @@ Requires: iproute
|
||||||
|
|
||||||
%if 0%{?rhel} >= 7
|
%if 0%{?rhel} >= 7
|
||||||
Requires: systemd
|
Requires: systemd
|
||||||
|
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?rhel} <= 6
|
%if 0%{?rhel} <= 6
|
||||||
|
@ -54,6 +55,14 @@ containers (Docker, OpenVZ, etc.).
|
||||||
#make CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" ZT_USE_MINIUPNPC=1 %{?_smp_mflags} one manpages selftest
|
#make CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" ZT_USE_MINIUPNPC=1 %{?_smp_mflags} one manpages selftest
|
||||||
#%endif
|
#%endif
|
||||||
|
|
||||||
|
%pre
|
||||||
|
%if 0%{?rhel} >= 7
|
||||||
|
/usr/bin/getent passwd zerotier-one || /usr/sbin/useradd -r -d /var/lib/zerotier-one -s /sbin/nologin zerotier-one
|
||||||
|
%endif
|
||||||
|
%if 0%{?fedora} >= 21
|
||||||
|
/usr/bin/getent passwd zerotier-one || /usr/sbin/useradd -r -d /var/lib/zerotier-one -s /sbin/nologin zerotier-one
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
pushd %{getenv:PWD}
|
pushd %{getenv:PWD}
|
||||||
|
|
Loading…
Add table
Reference in a new issue