Ensure DNS is running before starting nebula

This commit is contained in:
Fabio Alessandro Locati 2022-12-10 14:59:43 +01:00
parent 9470b39a58
commit 4652f6cee5
No known key found for this signature in database
GPG Key ID: 6C87B5F613A3F7F8

View File

@ -35,6 +35,8 @@ Conflicts: nebula < 1.0
%prep
%goprep
# https://github.com/slackhq/nebula/pull/791
sed -i 's/\(Wants=.*\)$/\1 nss-lookup.target/' dist/fedora/nebula.service
%generate_buildrequires
%go_generate_buildrequires
@ -51,7 +53,7 @@ install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
install -m 0755 -vd %{buildroot}%{_sysconfdir}/%{name}
install -m 0640 -vp examples/config.yml %{buildroot}%{_sysconfdir}/%{name}
install -m 0644 -vDp dist/arch/nebula.service %{buildroot}%{_unitdir}/%{name}.service
install -m 0644 -vDp dist/fedora/nebula.service %{buildroot}%{_unitdir}/%{name}.service
%if %{with check}
%check