mailiverse/install/setup-mysql

26 lines
687 B
Plaintext
Raw Permalink Normal View History

2013-08-18 16:09:58 -04:00
set -x
2013-09-01 12:19:41 -04:00
M_ROOT=`cat requirements/server_root_account`
2013-08-18 16:09:58 -04:00
MAIL_PASSWORD=`cat ../passwords/mail`
MAIL_EXTRA_PASSWORD=`cat ../passwords/mail_extra`
JAMES_PASSWORD=`cat ../passwords/james`
CAPTCHA_PASSWORD=`cat ../passwords/captcha`
STORE_PASSWORD=`cat ../passwords/store`
2013-08-18 16:09:58 -04:00
M_HOST=$1
`\
sed \
-e ''s/MAIL_PASSWORD/$MAIL_PASSWORD/'' \
-e ''s/MAIL_EXTRA_PASSWORD/$MAIL_EXTRA_PASSWORD/'' \
-e ''s/JAMES_PASSWORD/$JAMES_PASSWORD/'' \
-e ''s/CAPTCHA_PASSWORD/$CAPTCHA_PASSWORD/'' \
-e ''s/STORE_PASSWORD/$STORE_PASSWORD/'' \
2013-08-18 16:09:58 -04:00
setup-mysql.sql.template > setup-mysql.sql \
`
scp setup-mysql.remote $M_ROOT@$M_HOST:
scp setup-mysql.sql $M_ROOT@$M_HOST:
ssh $M_ROOT@$M_HOST ./setup-mysql.remote