Modification du script deployUsers.sh

This commit is contained in:
jeremy.thomas 2025-03-24 09:16:38 +01:00
parent 019d46462d
commit f70ce994fa

View File

@ -10,7 +10,8 @@ ssh $user@$ip "mkdir $workdir" 2> /dev/null
scp "./createGroups.sh" "./logins.csv" "./Users.csv" "./createUsers.sh" $user@$ip:$workdir
# Exécution les scripts
ssh $user@$ip << EOF
bash $workdir/createGroups.sh
bash $workdir/createUsers.sh
cd $workdir
bash createGroups.sh
bash createUsers.sh
EOF
ssh $user@$ip "rm -R $workdir"