Script/LeScript.sh

8 lines
228 B
Bash

#!/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"