Mercurial > hg > soundsoftware-site
view deploy/provision.d/050-webapp-db.sh @ 1592:72d9219f2f19 dockerise
Rejig explore page
author | Chris Cannam |
---|---|
date | Fri, 18 Aug 2017 14:46:06 +0100 |
parents | 94669513c53c |
children | 83412a0a2389 |
line wrap: on
line source
#!/bin/bash set -e # Copy across the database config file (the source file has presumably # been generated from a skeleton, earlier in provisioning) infile=/var/www/code/deploy/config/database.yml outfile=/var/www/code/config/database.yml if [ ! -f "$outfile" ]; then if [ ! -f "$infile" ]; then echo "ERROR: Database config file $infile not found - has the database secret been interpolated from $infile.in correctly?" exit 2 fi cp "$infile" "$outfile" fi