datbases: wait 1.5 second assign user to db after create

This commit is contained in:
Jorge Pastor 2024-06-05 17:47:40 +02:00
parent e1d250c35f
commit 8cd3605d48

View file

@ -29,6 +29,9 @@ class MySQLController(ServiceController):
# Create database and re-set permissions
mysql -e 'CREATE DATABASE `%(database)s`;' || true
mysql mysql -e 'DELETE FROM db WHERE db = "%(database)s";'\
# wait to create user
sleep 1.5
""") % context
)
for user in database.users.all():