Spotter-VM/lxc-apps/crisiscleanup/install/update-conf.sh

9 lines
264 B
Bash

#!/bin/sh
# Volumes
CC_CONF="${VOLUMES_DIR}/crisiscleanup/cc_conf"
# Replacements
sed -i "s|\(^ config\.mailer_sender = \).*|\1'${EMAIL}'|" ${CC_CONF}/initializers/devise.rb
sed -i "s|\(^ENV['GOOGLE_MAPS_API_KEY'] = \).*|\1${GMAPS_API_KEY}|" ${CC_CONF}/boot.rb