Modification du script deployUsers.sh
This commit is contained in:
parent
d0f6854d1c
commit
019d46462d
@ -9,6 +9,8 @@ ssh $user@$ip "mkdir $workdir" 2> /dev/null
|
|||||||
# Copie des scripts et fichiers
|
# Copie des scripts et fichiers
|
||||||
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 "bash $workdir/createGroups.sh"
|
ssh $user@$ip << EOF
|
||||||
ssh $user@$ip "bash $workdir/createUsers.sh"
|
bash $workdir/createGroups.sh
|
||||||
|
bash $workdir/createUsers.sh
|
||||||
|
EOF
|
||||||
ssh $user@$ip "rm -R $workdir"
|
ssh $user@$ip "rm -R $workdir"
|
Loading…
x
Reference in New Issue
Block a user