diff --git a/sisr1/tp04_scripts_admin/tp04/deployUsers.sh b/sisr1/tp04_scripts_admin/tp04/deployUsers.sh index 73f973e..1b238be 100644 --- a/sisr1/tp04_scripts_admin/tp04/deployUsers.sh +++ b/sisr1/tp04_scripts_admin/tp04/deployUsers.sh @@ -6,10 +6,8 @@ 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 "cd $workdir ; bash $workdir/createGroups.sh ; bash $workdir/createUsers.sh ; rm -R $workdir" +ssh $user@$ip << EOF + 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"