From dedb21e2ac2aed363334e4bc2bb68d76f294e8be Mon Sep 17 00:00:00 2001 From: "yann.lereuille" Date: Mon, 24 Mar 2025 09:18:07 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20fichier=20deployUsersv3.?= =?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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sisr1/tp04_scripts_admin/tp04/deployUsers.sh b/sisr1/tp04_scripts_admin/tp04/deployUsers.sh index 68eca5e..529cb6d 100644 --- a/sisr1/tp04_scripts_admin/tp04/deployUsers.sh +++ b/sisr1/tp04_scripts_admin/tp04/deployUsers.sh @@ -2,12 +2,12 @@ # Ip passée en paramètre ip=$1 -user=$user +user=root workdir=/$user/deploy -ssh $user@$ip "mkdir $workdir" 2> /dev/null +ssh $user@$ip "mkdir -p $workdir" 2> /dev/null scp "./createGroups.sh" "./logins.csv" "Users.csv" "createUsers.sh" $user@$ip:$workdir ssh $user@$ip << EOF bash $workdir/createGroups.sh bash $workdir/createUsers.sh rm -R $workdir -EOF \ No newline at end of file +EOF