Mercurial > hg > soundsoftware-site
changeset 1611:89d3095ddc70 deploy
Fix for vagrant deployment
author | Chris Cannam |
---|---|
date | Wed, 30 Aug 2017 14:58:25 +0100 |
parents | c6bee0e62957 |
children | 2496b955f638 |
files | deploy/provision.d/080-database-load.sh |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/deploy/provision.d/080-database-load.sh Tue Aug 29 12:10:21 2017 +0100 +++ b/deploy/provision.d/080-database-load.sh Wed Aug 30 14:58:25 2017 +0100 @@ -9,7 +9,12 @@ /etc/init.d/postgresql start -cd "$rootdir" +dumpdir="/code-to-deploy" +if [ ! -d "$dumpdir" ]; then + dumpdir=/var/www/code +fi + +cd "$dumpdir" if [ -f postgres-dumpall ]; then chmod ugo+r postgres-dumpall