From 18910e6b1a8493684ddc80d775b1edd451ce6c5f Mon Sep 17 00:00:00 2001 From: "yann.lereuille" Date: Mon, 24 Mar 2025 09:10:10 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20fichier=20deployUsersv2.?= =?UTF-8?q?sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sisr1/tp04_scripts_admin/tp04/deployUsers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sisr1/tp04_scripts_admin/tp04/deployUsers.sh b/sisr1/tp04_scripts_admin/tp04/deployUsers.sh index c66c749..68eca5e 100644 --- a/sisr1/tp04_scripts_admin/tp04/deployUsers.sh +++ b/sisr1/tp04_scripts_admin/tp04/deployUsers.sh @@ -6,7 +6,7 @@ user=$user workdir=/$user/deploy ssh $user@$ip "mkdir $workdir" 2> /dev/null scp "./createGroups.sh" "./logins.csv" "Users.csv" "createUsers.sh" $user@$ip:$workdir -ssh $user@$ip >> EOF +ssh $user@$ip << EOF bash $workdir/createGroups.sh bash $workdir/createUsers.sh rm -R $workdir