Ajout_de_la_correction_du_script_deployUsers.sh
This commit is contained in:
parent
56f177323f
commit
d0f6854d1c
@ -9,8 +9,6 @@ ssh $user@$ip "mkdir $workdir" 2> /dev/null
|
||||
# Copie des scripts et fichiers
|
||||
scp "./createGroups.sh" "./logins.csv" "./Users.csv" "./createUsers.sh" $user@$ip:$workdir
|
||||
# Exécution les scripts
|
||||
ssh $user@$ip >> EOF
|
||||
bash $workdir/createGroups.sh
|
||||
bash $workdir/createUsers.sh
|
||||
EOF
|
||||
ssh $user@$ip "bash $workdir/createGroups.sh"
|
||||
ssh $user@$ip "bash $workdir/createUsers.sh"
|
||||
ssh $user@$ip "rm -R $workdir"
|
Loading…
x
Reference in New Issue
Block a user