suite des tp

This commit is contained in:
charlie.alves 2025-03-24 09:23:59 +01:00
parent b0a7d61dca
commit 34a518f221

View File

@ -0,0 +1,16 @@
#!/bin/bash
ip=$1
workdir=/root/deploy
user=root
ssh $user@$ip "mkdir $workdir" 2> /dev/null
scp createGroups.sh $user@$ip:$workdir
scp logins.csv $user@$ip:$workdir
scp createUsers.sh $user@$ip:$workdir
scp Users.csv $user@$ip:$workdir
ssh $user@$ip "cd $workdir ; bash createGroups.sh ; bash createUsers.sh"
ssh $user@$ip "rm -R $workdir"