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=$1
|
||||
workdir=/root/deploy
|
||||
ssh root@$ip "mkdir $workdir" 2> /dev/null
|
||||
scp "./createGroups.sh" "./logins.csv" "createUsers.sh" root@$ip:$workdir
|
||||
ssh root@$ip >> EOF
|
||||
bash createGroups.sh
|
||||
bash createUsers.sh
|
||||
user=$user
|
||||
workdir=/$user/deploy
|
||||
ssh $user@$ip "mkdir $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
|
Loading…
x
Reference in New Issue
Block a user