git push
This commit is contained in:
parent
6171fbe6da
commit
019208c563
@ -7,12 +7,12 @@ workdir=/root/deploy #répertoire déploiement
|
|||||||
ssh root@$ip "mkdir $workdir" 2> /dev/null #création du répertoire
|
ssh root@$ip "mkdir $workdir" 2> /dev/null #création du répertoire
|
||||||
|
|
||||||
#copie de scripts et fichier
|
#copie de scripts et fichier
|
||||||
scp createGroups.sh $user@ip:$workdir
|
scp createGroups.sh $user@$ip:$workdir
|
||||||
scp createUsers.sh $user@ip:$workdir
|
scp createUsers.sh $user@$ip:$workdir
|
||||||
scp logins.csv $user@ip:$workdir
|
scp logins.csv $user@$ip:$workdir
|
||||||
scp Users.scv $user@ip:$workdir
|
scp Users.scv $user@$ip:$workdir
|
||||||
|
|
||||||
ssh $user@ip "cd $workdir ; bash $workdir/createGroups.sh"
|
ssh $user@$ip "cd $workdir ; bash $workdir/createGroups.sh"
|
||||||
ssh $user@ip "bash $workdir/createUsers.sh"
|
ssh $user@$ip "bash $workdir/createUsers.sh"
|
||||||
|
|
||||||
ssh root@ip "rm-R $workdir" #suppression
|
ssh root@$ip "rm-R $workdir" #suppression
|
Loading…
x
Reference in New Issue
Block a user