From 019208c5638bac8fbef2c5e587fdf53a02b3e2ce Mon Sep 17 00:00:00 2001 From: "aboulai.bayo" Date: Mon, 24 Mar 2025 09:52:00 +0100 Subject: [PATCH] git push --- sisr1/tp04_scripts_admin/deployUsers.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sisr1/tp04_scripts_admin/deployUsers.sh b/sisr1/tp04_scripts_admin/deployUsers.sh index a04f98c..620fd18 100644 --- a/sisr1/tp04_scripts_admin/deployUsers.sh +++ b/sisr1/tp04_scripts_admin/deployUsers.sh @@ -7,12 +7,12 @@ workdir=/root/deploy #répertoire déploiement ssh root@$ip "mkdir $workdir" 2> /dev/null #création du répertoire #copie de scripts et fichier -scp createGroups.sh $user@ip:$workdir -scp createUsers.sh $user@ip:$workdir -scp logins.csv $user@ip:$workdir -scp Users.scv $user@ip:$workdir +scp createGroups.sh $user@$ip:$workdir +scp createUsers.sh $user@$ip:$workdir +scp logins.csv $user@$ip:$workdir +scp Users.scv $user@$ip:$workdir -ssh $user@ip "cd $workdir ; bash $workdir/createGroups.sh" -ssh $user@ip "bash $workdir/createUsers.sh" +ssh $user@$ip "cd $workdir ; bash $workdir/createGroups.sh" +ssh $user@$ip "bash $workdir/createUsers.sh" -ssh root@ip "rm-R $workdir" #suppression \ No newline at end of file +ssh root@$ip "rm-R $workdir" #suppression \ No newline at end of file