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