Mercurial > hg > soundsoftware-site
view extra/soundsoftware/scripted-deploy/vagrant/start.sh @ 1582:f26dc3004b3f dockerise
A currently-failing attempt to get this setup working on Centos 7. Stalling on the problem of getting a recent enough system Ruby
author | Chris Cannam |
---|---|
date | Tue, 15 Aug 2017 16:26:46 +0100 |
parents | ae8043b014c7 |
children | d0d59d12db94 |
line wrap: on
line source
#!/bin/bash dbpwd="$1" if [ -z "$dbpwd" ]; then echo "Usage: $0 <database-password>" 1>&2 exit 2 fi set -eu deploydir=./extra/soundsoftware/scripted-deploy if [ ! -d "$deploydir" ]; then echo "Run this script from the root of a working copy of soundsoftware-site" exit 2 fi managerdir="$deploydir/vagrant" if [ ! -d "$managerdir" ]; then echo "ERROR: Required directory $managerdir not found" exit 2 fi configdir="$deploydir/config" if [ ! -d "$configdir" ]; then echo "ERROR: Required directory $configdir not found" exit 2 fi if [ ! -f "postgres-dumpall" ]; then echo "ERROR: I expect to find a Postgres SQL multi-db dump file in ./postgres-dumpall" exit 2 fi for f in database.yml code.conf ; do cat "$configdir/$f" | sed 's/INSERT_POSTGRES_PASSWORD_HERE/'"$dbpwd"'/g' > \ "$configdir/$f.interpolated" done cd "$managerdir" vagrant up