mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
330 B
19 lines
330 B
#!/bin/bash
|
|
#
|
|
|
|
python2.7 ../apps/manage.py shell << EOF
|
|
from users.models import *
|
|
init_all_models()
|
|
|
|
from assets.models import *
|
|
init_all_models()
|
|
EOF
|
|
|
|
|
|
python2.7 ../apps/manage.py dbshell << EOF
|
|
delete from django_content_type;
|
|
delete from auth_permission;
|
|
EOF
|
|
|
|
python2.7 ../apps/manage.py dumpdata > ../apps/fixtures/init.json
|