Modification du script deployUsers.sh

This commit is contained in:
jeremy.thomas 2025-03-24 09:12:32 +01:00
parent d0f6854d1c
commit 019d46462d

View File

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