From 63f08bf8a6033200b517cebda33bd27fab4fec91 Mon Sep 17 00:00:00 2001 From: "yann.lereuille" Date: Mon, 24 Mar 2025 09:34:18 +0100 Subject: [PATCH] test EOF2 --- sisr1/tp04_scripts_admin/tp04/deployUsers.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sisr1/tp04_scripts_admin/tp04/deployUsers.sh b/sisr1/tp04_scripts_admin/tp04/deployUsers.sh index 1b238be..ec8bc8c 100644 --- a/sisr1/tp04_scripts_admin/tp04/deployUsers.sh +++ b/sisr1/tp04_scripts_admin/tp04/deployUsers.sh @@ -7,7 +7,9 @@ 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 createGroups.sh ; bash createUsers.sh + cd $workdir + bash createGroups.sh + bash createUsers.sh rm -R $workdir EOF # ssh $user@$ip "cd $workdir ; bash $workdir/createGroups.sh ; bash $workdir/createUsers.sh ; rm -R $workdir"