Modification du script deployUsers.sh
This commit is contained in:
parent
019d46462d
commit
f70ce994fa
@ -10,7 +10,8 @@ ssh $user@$ip "mkdir $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
|
||||||
# Exécution les scripts
|
# Exécution les scripts
|
||||||
ssh $user@$ip << EOF
|
ssh $user@$ip << EOF
|
||||||
bash $workdir/createGroups.sh
|
cd $workdir
|
||||||
bash $workdir/createUsers.sh
|
bash createGroups.sh
|
||||||
|
bash createUsers.sh
|
||||||
EOF
|
EOF
|
||||||
ssh $user@$ip "rm -R $workdir"
|
ssh $user@$ip "rm -R $workdir"
|
Loading…
x
Reference in New Issue
Block a user