Commit 770124ec authored by Andrew Lee's avatar Andrew Lee

Enable obsservice daemon

The obsservice daemon requires user obsservicerun to create /srv/obs,
so that we also revert the obsservicerun user from 2.7.4. And I
believe this would also fix #924233 which was unable to purge as
obsservicerun user still exist on the system that got created by
previously installed 2.7.4 version.
Signed-off-by: Andrew Lee's avatarAndrew Lee (李健秋) <ajqlee@debian.org>
parent ad1ca88f
......@@ -12,6 +12,15 @@ if ! getent passwd obsrun > /dev/null; then
usermod -c "User for build service backend" obsrun
fi
if ! getent passwd obsservicerun > /dev/null; then
adduser --system --quiet \
--ingroup obsrun --shell /bin/false \
--home /usr/lib/obs --no-create-home \
--shell /bin/false obsservicerun
usermod -c "User for build service source service" obsservicerun
fi
install -g obsrun -o obsservicerun -m0775 -d /srv/obs/run
install -g obsrun -o obsrun -d /srv/obs/repos
# Start up schedulers
......
......@@ -13,6 +13,7 @@ if [ "$1" = "purge" ]; then
# Delete obs users and group
deluser --system --quiet obsrun
deluser --system --quiet obsservicerun
if getent group obsrun >/dev/null; then
delgroup --system --quiet obsrun
fi
......
......@@ -82,6 +82,7 @@ override_dh_systemd_enable:
obswarden.service \
obsdodup.service \
obspublisher.service \
obsservice.service \
obssigner.service
dh_systemd_enable -p obs-api obsapidelayed.service
......@@ -98,6 +99,7 @@ override_dh_systemd_start:
obswarden.service \
obsdodup.service \
obspublisher.service \
obsservice.service \
obssigner.service
dh_systemd_start -p obs-api obsapidelayed.service
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment