deployUsers.sh

This commit is contained in:
elio.lafourcade 2025-03-24 09:24:15 +01:00
parent f927a18301
commit 0f0dca9189

View File

@ -3,12 +3,12 @@
ip=$1 ip=$1
workdir=/root/deploy workdir=/root/deploy
ssh root@$ip "mkdir $workdir" 2> /dev/null ssh $user@$ip "mkdir $workdir" 2> /dev/null
scp createGroups.sh $user$ip:$workdir scp createGroups.sh $user$ip:$workdir
scp createUser.sh $user$ip:$workdir scp createUser.sh $user$ip:$workdir
scp login.csv $user$ip:/root scp login.csv $user$ip:$workdir
scp Users.csv $user$ip:/root scp Users.csv $user$ip:$workdir
# exécution des scripts # exécution des scripts
ssh $user@$ip "bash $workdir/createGroups.sh" ssh $user@$ip "bash $workdir/createGroups.sh"