Accepting request 987249 from devel:languages:python:mailman:backports

Add missing makemigritions on update

OBS-URL: https://build.opensuse.org/request/show/987249
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-postorius?expand=0&rev=40
This commit is contained in:
2022-07-06 15:30:12 +00:00
committed by Git OBS Bridge
parent 77802037ab
commit 34897d2414
2 changed files with 6 additions and 0 deletions

View File

@@ -217,6 +217,7 @@ popd
if ! grep -q "^SECRET_KEY.*" %{postorius_etcdir}/settings_local.py; then
echo "SECRET_KEY='$(openssl rand -base64 48)'" >> %{postorius_etcdir}/settings_local.py
fi
%{_sbindir}/postorius-manage makemigrations --pythonpath /srv/www/webapps/mailman/postorius/ --settings settings
%{_sbindir}/postorius-manage migrate --pythonpath /srv/www/webapps/mailman/postorius/ --settings settings
%files -n %{postorius_pkgname}