Commit c6b17d94 authored by Lukas Burgey's avatar Lukas Burgey

Add RabbitMQ setup to setup.sh

parent caaaf507
......@@ -5,7 +5,7 @@
# create a superuser
cat << EOF | ./manage.py shell
from feudal.backend.models import User;
from feudal.backend.models import User, RabbitMQInstance;
username = '${1}'
password = '${2}'
......@@ -19,4 +19,9 @@ else:
admin.user_type = 'admin'
admin.save()
rs = RabbitMQInstance.objects.filter(host='localhost')
if not rs.exists():
RabbitMQInstance.objects.create()
EOF
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment