To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / extra / soundsoftware / vagranttest / provision.d / 080-database-load.sh @ 1579:aba122ac2d40
History | View | Annotate | Download (276 Bytes)
| 1 | 1577:e38eee2e1d47 | Chris | #!/bin/bash |
|---|---|---|---|
| 2 | |||
| 3 | set -e |
||
| 4 | |||
| 5 | /etc/init.d/postgresql start |
||
| 6 | |||
| 7 | cd /var/www/code |
||
| 8 | |||
| 9 | if [ -f postgres-dumpall ]; then |
||
| 10 | chmod ugo+r postgres-dumpall |
||
| 11 | sudo -u postgres psql -f postgres-dumpall postgres |
||
| 12 | rm postgres-dumpall # This was just a copy of the shared folder file anyway |
||
| 13 | fi |
||
| 14 | |||
| 15 |