Mercurial > hg > soundsoftware-site
annotate deploy/provision.d/050-webapp-db.sh @ 1600:ed9c467ef922 dockerise
Add hggit extension
author | Chris Cannam |
---|---|
date | Wed, 23 Aug 2017 11:32:50 +0100 |
parents | 83412a0a2389 |
children |
rev | line source |
---|---|
Chris@1577 | 1 #!/bin/bash |
Chris@1577 | 2 |
Chris@1577 | 3 set -e |
Chris@1577 | 4 |
Chris@1589 | 5 # Copy across the database config file (the source file has presumably |
Chris@1589 | 6 # been generated from a skeleton, earlier in provisioning) |
Chris@1589 | 7 |
Chris@1593 | 8 infile=/var/www/code/deploy/config/database.yml.gen |
Chris@1589 | 9 outfile=/var/www/code/config/database.yml |
Chris@1587 | 10 |
Chris@1589 | 11 if [ ! -f "$outfile" ]; then |
Chris@1589 | 12 if [ ! -f "$infile" ]; then |
Chris@1589 | 13 echo "ERROR: Database config file $infile not found - has the database secret been interpolated from $infile.in correctly?" |
Chris@1589 | 14 exit 2 |
Chris@1589 | 15 fi |
Chris@1589 | 16 cp "$infile" "$outfile" |
Chris@1577 | 17 fi |
Chris@1577 | 18 |