From 05f4542a95f359daf3b7ad060c53d0d66d4ca107 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 18 2015 11:46:02 +0000 Subject: Move pagure-stream-server into /usr/libexect/pagure-ev and make it executable --- diff --git a/ev-server/pagure_ev.service b/ev-server/pagure_ev.service index c507457..b202a0e 100644 --- a/ev-server/pagure_ev.service +++ b/ev-server/pagure_ev.service @@ -5,7 +5,7 @@ After=redis.target Documentation=https://pagure.io/pagure [Service] -ExecStart=/usr/bin/python2 /usr/share/pagure-ev/pagure-stream-server.py +ExecStart=/usr/libexec/pagure-ev/pagure-stream-server.py Type=simple User=git Group=git diff --git a/files/pagure.spec b/files/pagure.spec index fc32b74..b118060 100644 --- a/files/pagure.spec +++ b/files/pagure.spec @@ -157,9 +157,9 @@ install -m 644 milters/comment_email_milter.py \ $RPM_BUILD_ROOT/%{_datadir}/pagure/comment_email_milter.py # Install the eventsource -mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pagure-ev -install -m 644 ev-server/pagure-stream-server.py \ - $RPM_BUILD_ROOT/%{_datadir}/pagure-ev/pagure-stream-server.py +mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}/pagure-ev +install -m 755 ev-server/pagure-stream-server.py \ + $RPM_BUILD_ROOT/%{_libexecdir}/pagure-ev/pagure-stream-server.py install -m 644 ev-server/pagure_ev.service \ $RPM_BUILD_ROOT/%{_unitdir}/pagure_ev.service @@ -205,7 +205,7 @@ install -m 644 ev-server/pagure_ev.service \ %files %license LICENSE -%{_datadir}/pagure-ev/ +%{_libexecdir}/pagure-ev/ %{_unitdir}/pagure_ev.service