Mise à jour fichier deployUsersv2.sh

This commit is contained in:
yann.lereuille 2025-03-24 09:10:10 +01:00
parent 8271f3984b
commit 18910e6b1a

View File

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