mirror of
https://github.com/postgres/pgweb.git
synced 2025-07-25 16:02:27 +00:00
Make loading script work regardless of directory
This commit is contained in:
@ -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)'
|
echo 'Are you sure you want this (answer "yes" to overwrite)'
|
||||||
read R
|
read R
|
||||||
|
|
||||||
|
cd $(dirname $0)
|
||||||
|
|
||||||
if [ "$R" == "yes" ]; then
|
if [ "$R" == "yes" ]; then
|
||||||
find . -name data.yaml | xargs ../manage.py loaddata
|
find . -name data.yaml | xargs ../manage.py loaddata
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user