This commit is contained in:
yann.lereuille 2025-03-24 09:31:54 +01:00
parent f9ee969d21
commit 22d1a1770a

View File

@ -6,10 +6,8 @@ user=root
workdir=/$user/deploy 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 cd $workdir ; bash createGroups.sh ; bash createUsers.sh
# bash $workdir/createGroups.sh rm -R $workdir
# bash $workdir/createUsers.sh EOF
# rm -R $workdir # ssh $user@$ip "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"