-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·33 lines (25 loc) · 795 Bytes
/
setup.sh
File metadata and controls
executable file
·33 lines (25 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
if [ "$EUID" -ne 0 ] ; then
echo "Le script doit être exécuté en tant que root!"
exit
fi
echo "Les commandes suivantes vont être exécutées"
echo "#apt-get update"
echo "#apt-get install openvpn python3 python3-pip"
echo "#pip3 install git+https://github.com/svinota/pyroute2/"
echo "#pip3 install netaddr"
echo "#pip3 install psutil"
read -p "Etes-vous d'accord? [y/N]" choix
choix=${choix:-N}
if [ "${choix,,}" != "y" ] ; then
exit
fi
echo "Installation..."
apt-get update -y
apt-get install -y openvpn python3 python3-pip
pip3 install git+https://github.com/svinota/pyroute2/
pip3 install netaddr
pip3 install psutil
echo ""
echo ""
echo "TwinBridge Client a été installé sur votre Raspberry Pi. Pour y accéder, connectez-vous en HTTP sur votre Raspberry Pi."