Escape variable when running db provision
Still fails at present - need to add step before running migrations
This commit is contained in:
parent
719a731fa8
commit
2180a3124b
@ -87,7 +87,7 @@ su postgres -c "psql -c \"SELECT 1 FROM pg_database WHERE datname = 'vagrant';\"
|
|||||||
| grep -q 1 || su postgres -c "createdb -E UTF8 -T template0 --locale=en_US.utf8 -O vagrant vagrant"
|
| grep -q 1 || su postgres -c "createdb -E UTF8 -T template0 --locale=en_US.utf8 -O vagrant vagrant"
|
||||||
|
|
||||||
# Run all 'up' migrations to create tables, data types, indexes
|
# Run all 'up' migrations to create tables, data types, indexes
|
||||||
su postgres -c "ls /vagrant/migrations/*.up.sql 2>/dev/null | while read -r migration; do psql < $migration; done;"
|
su postgres -c "ls /vagrant/migrations/*.up.sql 2>/dev/null | while read -r migration; do psql < \$migration; done;"
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user