On Thu, Nov 3, 2016 at 1:47 PM Richard Shaw <hobbes1069@xxxxxxxxx> wrote:
On Thu, Nov 3, 2016 at 6:42 AM, arnaud gaboury <arnaud.gaboury@xxxxxxxxx> wrote:Below is part of my .spec file:%install
--------------------------------------------------install -Dm644 mattermost.service %{buildroot}/usr/lib/systemd/system/mattermost.service
install -Dm644 mattermost-user.conf %{buildroot}/usr/lib/sysusers.d/mattermost.confFirst install line change to %{buildroot}%{_unitdir} for the systemd fileand the second to use %{buildroot}%{_sysusersdir} for the conf file.Also, be consistent, use the macros both in %install and in %files.
Do you mean this ? :
--------------------------------------------------
%install
--------------------------------------------------
%install
install -Dm644 mattermost.service %{buildroot}%{_unitdir}/system/mattermost.service
install -Dm644 mattermost-user.conf %{buildroot}%{_sysuserdir}/mattermost.conf
install -Dm644 mattermost-user.conf %{buildroot}%{_sysuserdir}/mattermost.conf
%files
%{_unitdir}/system/mattermost.service
%{_sysuserdir}/mattermost.conf
------------------------------------------------------------------
%{_unitdir}/system/mattermost.service
%{_sysuserdir}/mattermost.conf
------------------------------------------------------------------
Where do these macro come from ? Any doc link ?
Thank you
_______________________________________________Richard
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx