deployUsers.sh
This commit is contained in:
parent
f927a18301
commit
0f0dca9189
@ -3,12 +3,12 @@
|
||||
ip=$1
|
||||
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 createUser.sh $user$ip:$workdir
|
||||
scp login.csv $user$ip:/root
|
||||
scp Users.csv $user$ip:/root
|
||||
scp login.csv $user$ip:$workdir
|
||||
scp Users.csv $user$ip:$workdir
|
||||
|
||||
# exécution des scripts
|
||||
ssh $user@$ip "bash $workdir/createGroups.sh"
|
||||
|
Loading…
x
Reference in New Issue
Block a user