mirror of
https://github.com/moparisthebest/mailiverse
synced 2024-11-22 08:52:14 -05:00
24 lines
597 B
Plaintext
24 lines
597 B
Plaintext
|
set -x
|
||
|
|
||
|
source requirements/server_root_account
|
||
|
|
||
|
MAIL_PASSWORD=`cat ../passwords/mail`
|
||
|
MAIL_EXTRA_PASSWORD=`cat ../passwords/mail_extra`
|
||
|
JAMES_PASSWORD=`cat ../passwords/james`
|
||
|
CAPTCHA_PASSWORD=`cat ../passwords/captcha`
|
||
|
|
||
|
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/'' \
|
||
|
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
|