test EOF2

This commit is contained in:
yann.lereuille 2025-03-24 09:34:18 +01:00
parent 22d1a1770a
commit 63f08bf8a6

View File

@ -7,7 +7,9 @@ workdir=/$user/deploy
ssh $user@$ip "mkdir -p $workdir" 2> /dev/null ssh $user@$ip "mkdir -p $workdir" 2> /dev/null
scp "./createGroups.sh" "./logins.csv" "Users.csv" "createUsers.sh" $user@$ip:$workdir scp "./createGroups.sh" "./logins.csv" "Users.csv" "createUsers.sh" $user@$ip:$workdir
ssh $user@$ip << EOF ssh $user@$ip << EOF
cd $workdir ; bash createGroups.sh ; bash createUsers.sh cd $workdir
bash createGroups.sh
bash createUsers.sh
rm -R $workdir rm -R $workdir
EOF EOF
# ssh $user@$ip "cd $workdir ; bash $workdir/createGroups.sh ; bash $workdir/createUsers.sh ; rm -R $workdir" # ssh $user@$ip "cd $workdir ; bash $workdir/createGroups.sh ; bash $workdir/createUsers.sh ; rm -R $workdir"