Skip to content

Commit

Permalink
Merge pull request #1 from OSC/path
Browse files Browse the repository at this point in the history
Use /usr/sbin/ondemand-dex for binary path
  • Loading branch information
treydock authored Jul 6, 2020
2 parents 0c9e1aa + f1fbf50 commit a758c2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packaging/ondemand-dex.spec
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ cd $GOPATH/src/github.com/dexidp/dex/
export PATH=$PATH:%{_buildrootdir}/go/bin
GOPATH=$(go env GOPATH)
cd $GOPATH/src/github.com/dexidp/dex/
%__install -p -m 755 -D bin/dex %{buildroot}%{_exec_prefix}/local/bin/%{name}
%__install -p -m 755 -D bin/dex %{buildroot}%{_exec_prefix}/sbin/%{name}
%__install -p -m 600 -D examples/config-dev.yaml %{buildroot}%{confdir}/config.yaml
touch %{buildroot}%{confdir}/dex.db
%__mkdir_p %{buildroot}%{_datadir}/%{name}
Expand All @@ -63,7 +63,7 @@ Wants=network-online.target
[Service]
WorkingDirectory=%{_datadir}/%{name}
ExecStart=%{_exec_prefix}/local/bin/%{name} serve %{confdir}/config.yaml
ExecStart=%{_exec_prefix}/sbin/%{name} serve %{confdir}/config.yaml
User=%{name}
Group=%{name}
Expand All @@ -88,7 +88,7 @@ getent passwd %{name} > /dev/null || useradd -r -d /var/lib/%{name} -g %{name} -
%systemd_postun_with_restart %{name}.service

%files
%{_exec_prefix}/local/bin/%{name}
%{_exec_prefix}/sbin/%{name}
%dir %attr(0700,%{name},%{name}) %{confdir}
%config(noreplace,missingok) %attr(0600,%{name},%{name}) %{confdir}/config.yaml
%ghost %{confdir}/dex.db
Expand Down

0 comments on commit a758c2c

Please sign in to comment.