diff --git a/python-HyperKitty.changes b/python-HyperKitty.changes index e684e46..2f105e3 100644 --- a/python-HyperKitty.changes +++ b/python-HyperKitty.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 10 08:14:18 UTC 2022 - Andreas Schneider + +- First Make migrations on update, then call migrate + ------------------------------------------------------------------- Thu May 26 09:19:37 UTC 2022 - pgajdos@suse.com diff --git a/python-HyperKitty.spec b/python-HyperKitty.spec index 4da3e88..0c95a1d 100644 --- a/python-HyperKitty.spec +++ b/python-HyperKitty.spec @@ -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}