diff extra/soundsoftware/scripted-deploy/vagrant/provision.d/050-webapp-db.sh @ 1581:ae8043b014c7 dockerise

Updates, fixes, and tidying to scripted deployment stuff
author Chris Cannam
date Tue, 15 Aug 2017 13:33:56 +0100
parents extra/soundsoftware/vagranttest/provision.d/050-webapp-db.sh@e38eee2e1d47
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/extra/soundsoftware/scripted-deploy/vagrant/provision.d/050-webapp-db.sh	Tue Aug 15 13:33:56 2017 +0100
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -e
+
+if [ ! -f /var/www/code/config/database.yml ]; then
+    cp /var/www/code/extra/soundsoftware/scripted-deploy/config/database.yml.interpolated \
+       /var/www/code/config/database.yml
+fi
+