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