test avec ;
This commit is contained in:
parent
d025522b94
commit
f9ee969d21
@ -6,9 +6,10 @@ user=root
|
|||||||
workdir=/$user/deploy
|
workdir=/$user/deploy
|
||||||
ssh $user@$ip "mkdir -p $workdir" 2> /dev/null
|
ssh $user@$ip "mkdir -p $workdir" 2> /dev/null
|
||||||
scp "./createGroups.sh" "./logins.csv" "Users.csv" "createUsers.sh" $user@$ip:$workdir
|
scp "./createGroups.sh" "./logins.csv" "Users.csv" "createUsers.sh" $user@$ip:$workdir
|
||||||
ssh $user@$ip << EOF
|
# ssh $user@$ip << EOF
|
||||||
cd $workdir
|
# cd $workdir
|
||||||
bash $workdir/createGroups.sh
|
# bash $workdir/createGroups.sh
|
||||||
bash $workdir/createUsers.sh
|
# bash $workdir/createUsers.sh
|
||||||
rm -R $workdir
|
# rm -R $workdir
|
||||||
EOF
|
# EOF
|
||||||
|
ssh $user@$ip "cd $workdir ; bash $workdir/createGroups.sh ; bash $workdir/createUsers.sh ; rm -R $workdir"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user