Skip to content
Snippets Groups Projects
Commit 137bb488 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

backend: Make sure the dods directory is created before starting OBS

If this doesn't exist, then the scheduler will never notify dodup that
the doddata has changed, which means that new DoD projects will never
be processed.

https://phabricator.apertis.org/T10380



Signed-off-by: default avatarRyan Gonzalez <ryan.gonzalez@collabora.com>


(cherry picked from commit c7eed003)

Co-authored-by: default avatarRyan Gonzalez <ryan.gonzalez@collabora.com>
parent f0243221
No related branches found
No related tags found
No related merge requests found
Pipeline #137667 canceled
...@@ -119,7 +119,7 @@ COPY --from=aptly-tools-builder \ ...@@ -119,7 +119,7 @@ COPY --from=aptly-tools-builder \
/tmp/aptly-rest-tools/target/release/obs2aptly \ /tmp/aptly-rest-tools/target/release/obs2aptly \
/usr/local/bin/ /usr/local/bin/
RUN mkdir -p /srv/obs/log /srv/obs/run \ RUN mkdir -p /srv/obs/dods /srv/obs/log /srv/obs/run \
&& chmod ug=rwxt /srv/obs/run \ && chmod ug=rwxt /srv/obs/run \
&& chown obsrun:obsrun -R /srv/obs && chown obsrun:obsrun -R /srv/obs
......
...@@ -13,7 +13,7 @@ then ...@@ -13,7 +13,7 @@ then
exit 1 exit 1
fi fi
mkdir -p /srv/obs/log /srv/obs/run mkdir -p /srv/obs/dods /srv/obs/log /srv/obs/run
chmod ug=rwxt /srv/obs/run chmod ug=rwxt /srv/obs/run
chown obsrun:obsrun /srv/obs/* chown obsrun:obsrun /srv/obs/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment