1
0

Accepting request 982351 from devel:languages:python:mailman

OBS-URL: https://build.opensuse.org/request/show/982351
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-HyperKitty?expand=0&rev=16
This commit is contained in:
2022-06-13 11:02:56 +00:00
committed by Git OBS Bridge
2 changed files with 6 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jun 10 08:14:18 UTC 2022 - Andreas Schneider <asn@cryptomilk.org>
- First Make migrations on update, then call migrate
-------------------------------------------------------------------
Thu May 26 09:19:37 UTC 2022 - pgajdos@suse.com

View File

@@ -279,6 +279,7 @@ export PYTHONPATH=$(pwd)
if ! grep -q "^SECRET_KEY.*" %{hyperkitty_etcdir}/settings_local.py; then
echo "SECRET_KEY='$(openssl rand -base64 48)'" >> %{hyperkitty_etcdir}/settings_local.py
fi
%{_sbindir}/hyperkitty-manage makemigrations --pythonpath /srv/www/webapps/mailman/hyperkitty/ --settings settings
%{_sbindir}/hyperkitty-manage migrate --pythonpath /srv/www/webapps/mailman/hyperkitty/ --settings settings
%service_add_post %{hyperkitty_services}