Ajouter LeScript.sh

This commit is contained in:
jibril.bouhbas 2024-03-04 11:38:38 +01:00
parent ef58899c8e
commit 6efe828a5a

7
LeScript.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
echo "Sur quelle adresse IP déployer?"
read address
scp ./createUsers.sh root@$address:/root
scp./logins.csv root@$address:/root
ssh root@$address "bash /root/createUsers.sh"
ssh root@$address "rm /root/logins.csv"