Skip to content

Commit

Permalink
[dist] change homedir of user 'obsservicerun'
Browse files Browse the repository at this point in the history
With this commit we change $HOME of the user 'obsservicerun' from
/usr/lib/obs to /srv/obs/service. /srv/obs/service is owned by 'obsservicerun'
by default. It should avoid problems for services using git via ssh.
  • Loading branch information
M0ses committed Jul 7, 2020
1 parent fe21bb8 commit 23472fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/obs-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ make -C dist test

%pre
getent passwd obsservicerun >/dev/null || \
/usr/sbin/useradd -r -g obsrun -d /usr/lib/obs -s %{sbin}/nologin \
/usr/sbin/useradd -r -g obsrun -d %{obs_backend_data_dir}/service -s %{sbin}/nologin \
-c "User for the build service source service" obsservicerun

%service_add_pre obsscheduler.service
Expand Down

0 comments on commit 23472fa

Please sign in to comment.