diff options
Diffstat (limited to 'packaging/murphy.spec')
-rw-r--r-- | packaging/murphy.spec | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/packaging/murphy.spec b/packaging/murphy.spec index eca92a8..f8c9355 100644 --- a/packaging/murphy.spec +++ b/packaging/murphy.spec @@ -293,9 +293,8 @@ mkdir -p %{buildroot}%{_tmpfilesdir} cp packaging/murphyd.conf %{buildroot}%{_tmpfilesdir} # Copy the systemd files in place. -#mkdir -p %%{buildroot}%%{_unitdir} -mkdir -p %{buildroot}%{_unitdir_user} -cp packaging/murphyd.service %{buildroot}%{_unitdir_user} +mkdir -p %{buildroot}%{_unitdir} +cp packaging/murphyd.service %{buildroot}%{_unitdir} %if %{with dbus} mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d @@ -309,13 +308,13 @@ cp packaging/org.Murphy.conf \ rm -rf %{buildroot} %post -/bin/systemctl --user enable --global murphyd.service +/bin/systemctl enable murphyd.service #setcap 'cap_net_admin=+ep' %{_bindir}/murphyd ldconfig %postun if [ "$1" = "0" ]; then -systemctl --user disable --global murphyd.service +systemctl disable murphyd.service fi ldconfig @@ -356,7 +355,7 @@ ldconfig %manifest murphy.manifest %{_bindir}/murphyd %config %{_sysconfdir}/murphy -%{_unitdir_user}/murphyd.service +%{_unitdir}/murphyd.service %{_tmpfilesdir}/murphyd.conf %if %{with dbus} %{_sysconfdir}/dbus-1/system.d |