fix initadmin script

This commit is contained in:
virusdefender
2017-11-25 12:54:29 +08:00
parent cf40deb97c
commit 1f9eca8b7d
5 changed files with 45 additions and 58 deletions

View File

@@ -21,7 +21,7 @@ n=0
while [ $n -lt 5 ]
do
python manage.py migrate --no-input &&
python manage.py initinstall &&
python manage.py inituser --username=root --password=rootroot --action=create_super_admin &&
break
n=$(($n+1))
echo "Failed to migrate, going to retry..."