Mise à jour fichier deployUsersv3.sh
This commit is contained in:
parent
18910e6b1a
commit
dedb21e2ac
@ -2,12 +2,12 @@
|
||||
|
||||
# Ip passée en paramètre
|
||||
ip=$1
|
||||
user=$user
|
||||
user=root
|
||||
workdir=/$user/deploy
|
||||
ssh $user@$ip "mkdir $workdir" 2> /dev/null
|
||||
ssh $user@$ip "mkdir -p $workdir" 2> /dev/null
|
||||
scp "./createGroups.sh" "./logins.csv" "Users.csv" "createUsers.sh" $user@$ip:$workdir
|
||||
ssh $user@$ip << EOF
|
||||
bash $workdir/createGroups.sh
|
||||
bash $workdir/createUsers.sh
|
||||
rm -R $workdir
|
||||
EOF
|
||||
EOF
|
||||
|
Loading…
x
Reference in New Issue
Block a user