diff --git a/sisr1/tp04_scripts_admin/deployUsers.sh b/sisr1/tp04_scripts_admin/deployUsers.sh new file mode 100644 index 0000000..e584f43 --- /dev/null +++ b/sisr1/tp04_scripts_admin/deployUsers.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +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 +EOF +ssh root@$ip "rm -R $workdir" \ No newline at end of file