Make loading script work regardless of directory

This commit is contained in:
Magnus Hagander
2021-01-01 16:19:14 +01:00
parent 4734156bbe
commit 096fd8fe62

View File

@ -8,6 +8,8 @@ echo WARNING: this may overwrite some data in the database with an initial set o
echo 'Are you sure you want this (answer "yes" to overwrite)'
read R
cd $(dirname $0)
if [ "$R" == "yes" ]; then
find . -name data.yaml | xargs ../manage.py loaddata
fi