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