mailiverse/install/enable-passwordless-sudo
2013-10-04 22:58:21 -04:00

9 lines
245 B
Plaintext
Executable File

if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi
set -x
M_ROOT=`cat requirements/server_root_account`
M_HOST=$1
scp enable-passwordless-sudo.remote $M_ROOT@$M_HOST:
ssh -t $M_ROOT@$M_HOST sudo ./enable-passwordless-sudo.remote $M_ROOT