mailiverse/install/create-server-accounts

12 lines
341 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
2013-09-01 12:19:41 -04:00
M_ROOT=`cat requirements/server_root_account`
2013-08-16 15:34:54 -04:00
M_HOST=$1
scp requirements/id_rsa.pub $M_ROOT@$M_HOST:authorized_keys
scp create-server-accounts.remote $M_ROOT@$M_HOST:
scp create-server-account-user.remote $M_ROOT@$M_HOST:
ssh $M_ROOT@$M_HOST ./create-server-accounts.remote
2013-08-16 15:34:54 -04:00