From f9ee969d210199b809411d95c51d7fe460711901 Mon Sep 17 00:00:00 2001 From: "yann.lereuille" Date: Mon, 24 Mar 2025 09:27:20 +0100 Subject: [PATCH] test avec ; --- sisr1/tp04_scripts_admin/tp04/deployUsers.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/sisr1/tp04_scripts_admin/tp04/deployUsers.sh b/sisr1/tp04_scripts_admin/tp04/deployUsers.sh index c492a82..73f973e 100644 --- a/sisr1/tp04_scripts_admin/tp04/deployUsers.sh +++ b/sisr1/tp04_scripts_admin/tp04/deployUsers.sh @@ -6,9 +6,10 @@ user=root workdir=/$user/deploy 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 - cd $workdir - bash $workdir/createGroups.sh - bash $workdir/createUsers.sh - rm -R $workdir -EOF +# ssh $user@$ip << EOF +# cd $workdir +# bash $workdir/createGroups.sh +# bash $workdir/createUsers.sh +# rm -R $workdir +# EOF +ssh $user@$ip "cd $workdir ; bash $workdir/createGroups.sh ; bash $workdir/createUsers.sh ; rm -R $workdir"