From f70ce994faf9c1464176145f9514e1bf1d56b631 Mon Sep 17 00:00:00 2001 From: "jeremy.thomas" Date: Mon, 24 Mar 2025 09:16:38 +0100 Subject: [PATCH] Modification du script deployUsers.sh --- sisr1/tp04_scripts_admin/deployUsers.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sisr1/tp04_scripts_admin/deployUsers.sh b/sisr1/tp04_scripts_admin/deployUsers.sh index 3a9f4e3..0ed39d0 100644 --- a/sisr1/tp04_scripts_admin/deployUsers.sh +++ b/sisr1/tp04_scripts_admin/deployUsers.sh @@ -10,7 +10,8 @@ ssh $user@$ip "mkdir $workdir" 2> /dev/null 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 + cd $workdir + bash createGroups.sh + bash createUsers.sh EOF ssh $user@$ip "rm -R $workdir" \ No newline at end of file