From 019d46462db361056124d64394a910ca83ff0530 Mon Sep 17 00:00:00 2001 From: "jeremy.thomas" Date: Mon, 24 Mar 2025 09:12:32 +0100 Subject: [PATCH] Modification du script deployUsers.sh --- sisr1/tp04_scripts_admin/deployUsers.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sisr1/tp04_scripts_admin/deployUsers.sh b/sisr1/tp04_scripts_admin/deployUsers.sh index a0c29e1..3a9f4e3 100644 --- a/sisr1/tp04_scripts_admin/deployUsers.sh +++ b/sisr1/tp04_scripts_admin/deployUsers.sh @@ -9,6 +9,8 @@ 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 "bash $workdir/createGroups.sh" -ssh $user@$ip "bash $workdir/createUsers.sh" +ssh $user@$ip << EOF + bash $workdir/createGroups.sh + bash $workdir/createUsers.sh +EOF ssh $user@$ip "rm -R $workdir" \ No newline at end of file