diff --git a/sisr1/tp04-scripts-admin/deployUsers.sh b/sisr1/tp04-scripts-admin/deployUsers.sh index 2d7fcd8..506b954 100644 --- a/sisr1/tp04-scripts-admin/deployUsers.sh +++ b/sisr1/tp04-scripts-admin/deployUsers.sh @@ -3,12 +3,12 @@ ip=$1 workdir=/root/deploy -ssh root@$ip "mkdir $workdir" 2> /dev/null +ssh $user@$ip "mkdir $workdir" 2> /dev/null scp createGroups.sh $user$ip:$workdir scp createUser.sh $user$ip:$workdir -scp login.csv $user$ip:/root -scp Users.csv $user$ip:/root +scp login.csv $user$ip:$workdir +scp Users.csv $user$ip:$workdir # exécution des scripts ssh $user@$ip "bash $workdir/createGroups.sh"