This commit is contained in:
jeremy.thomas 2025-03-20 14:55:47 +01:00
parent 22c569242e
commit 0d6fb2ac8a

View File

@ -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"