mailiverse/install/create-server-accounts

13 lines
430 B
Plaintext
Raw Normal View History

2013-08-16 15:34:54 -04:00
if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi
set -x
source ../host.config
M_HOST=$1
scp -i requirements/ec2-key.pem requirements/id_rsa.pub $M_ROOT@$M_HOST:authorized_keys
scp -i requirements/ec2-key.pem create-server-accounts.remote $M_ROOT@$M_HOST:
scp -i requirements/ec2-key.pem create-server-account-user.remote $M_ROOT@$M_HOST:
ssh -i requirements/ec2-key.pem $M_ROOT@$M_HOST ./create-server-accounts.remote