This commit is contained in:
aboulai.bayo 2025-03-24 09:54:40 +01:00
parent 019208c563
commit 554c47126d

View File

@ -10,9 +10,8 @@ ssh root@$ip "mkdir $workdir" 2> /dev/null #création du répertoire
scp createGroups.sh $user@$ip:$workdir
scp createUsers.sh $user@$ip:$workdir
scp logins.csv $user@$ip:$workdir
scp Users.scv $user@$ip:$workdir
scp Users.csv $user@$ip:$workdir
ssh $user@$ip "cd $workdir ; bash $workdir/createGroups.sh"
ssh $user@$ip "bash $workdir/createUsers.sh"
ssh $user@$ip "cd $workdir ; bash $workdir/createGroups.sh ; bash $workdir/createUsers.sh"
ssh root@$ip "rm-R $workdir" #suppression
ssh root@$ip "rm -R $workdir" #suppression