mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-02 06:20:26 +08:00
bodhi: fix hotfix to RUN sed
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
@@ -9,13 +9,13 @@ RUN curl -o /etc/yum.repos.d/infra-tags-stg.repo https://infrastructure.fedorapr
|
||||
RUN curl -o /etc/yum.repos.d/infra-tags.repo https://infrastructure.fedoraproject.org/infra/ansible/files/common/fedora-infra-tags.repo
|
||||
{% endif %}
|
||||
{% if env == "staging" %}
|
||||
RUN dnf install -y bodhi-server python3-pyramid_sawing python3-gunicorn --refresh
|
||||
RUN dnf install -y bodhi-server python3-pyramid_sawing python3-gunicorn sed --refresh
|
||||
{% else %}
|
||||
RUN dnf install -y bodhi-server-{{bodhi_version}} python3-pyramid_sawing python3-gunicorn sed
|
||||
{% endif %}
|
||||
|
||||
# HOTFIX for https://github.com/fedora-infra/bodhi/pull/4687
|
||||
sed -i -e 's|verbose=False|verbose=True|' /usr/lib/python3.10/site-packages/bodhi/server/models.py
|
||||
RUN sed -i -e 's|verbose=False|verbose=True|' /usr/lib/python3.10/site-packages/bodhi/server/models.py
|
||||
|
||||
# link the static files for a simpler httpd.conf
|
||||
RUN ln -s $(python3 -Ic "import sysconfig; print(sysconfig.get_path('purelib', 'rpm_prefix'))")/bodhi/server/static/ /srv/bodhi-static
|
||||
|
||||
Reference in New Issue
Block a user