To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / extra / soundsoftware / scripted-deploy / vagrant / provision.d / 080-database-load.sh @ 1586:d0d59d12db94

History | View | Annotate | Download (276 Bytes)

1
#!/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

    
16