Ajout_de_la_correction_du_script_deployUsers.sh

This commit is contained in:
jeremy.thomas 2025-03-24 09:04:05 +01:00
parent 56f177323f
commit d0f6854d1c

View File

@ -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"