fix the run.sh script
without the changes it was failing at first run
This commit is contained in:
parent
0a8e0c7760
commit
f23234b6e0
3
run.sh
3
run.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue