fix the run.sh script

without the changes it was failing at first run
This commit is contained in:
Andreas Zweili 2019-12-30 01:37:23 +01:00
parent 0a8e0c7760
commit f23234b6e0
1 changed files with 3 additions and 0 deletions

3
run.sh
View File

@ -1,9 +1,12 @@
#!/bin/bash
cd network_inventory
if [ -f ./.second_run ]; then
sleep 2
python manage.py makemigrations inventory
python manage.py makemigrations
python manage.py migrate
else
python manage.py makemigrations inventory
python manage.py makemigrations
python manage.py migrate
python manage.py loaddata inventory