From 0c5be80971d7c469e93fa43d027a8e02ec699617406963b273ca0ae3df8f7081 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 13 Jun 2022 07:08:19 +0000 Subject: [PATCH] Accepting request 982015 from home:gladiac:mailman3 - First Make migrations on update, then call migrate OBS-URL: https://build.opensuse.org/request/show/982015 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-HyperKitty?expand=0&rev=52 --- python-HyperKitty.changes | 5 +++++ python-HyperKitty.spec | 1 + 2 files changed, 6 insertions(+) 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}