This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
forked from amussey/FreeNAS-Transmission-OpenVPN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (41 loc) · 1.64 KB
/
Makefile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
default: all
uninstall:
- service transmission stop
- service openvpn stop
rm -rf /usr/local/etc/openvpn
rm -rf /etc/rc.conf.d/openvpn
rm -rf /usr/local/etc/rc.d/openvpn
all: requirements install
requirements:
pkg update
pkg fetch -u -y
pkg upgrade -y
pkg install -y openvpn python3 jq bash
install:
- service transmission status && service transmission stop
cp -R ./app_root/* /
chmod +x /usr/local/etc/rc.d/openvpn
chmod +x /usr/local/etc/openvpn/scripts/*.sh
chmod 600 /usr/local/etc/openvpn/client.conf
@clear
@echo "NordVPN service credential (not your email/password)"
@echo "Enter your NordVPN service credential username and press [ENTER]:" ; \
read USERNAME ; \
echo $$USERNAME > /usr/local/etc/openvpn/credentials
@printf "Enter your NordVPN service credential password and press [ENTER]: \n"; \
stty -echo; \
read PASSWORD; \
stty echo; \
echo $$PASSWORD >> /usr/local/etc/openvpn/credentials
chmod 600 /usr/local/etc/openvpn/credentials
@clear
@echo -e "\nVPN service's username and password were written to the '/usr/local/etc/openvpn/credentials' file."
@echo -e "PLEASE BE AWARE: These are written out in plain text.\n\n"
@echo "Installation complete. The service will automatically select and connect to a NordVPN UDP P2P capable"
@echo "host and start Transmision. In case you want to use another provider or server, just replace the"
@echo -e "'/usr/local/etc/openvpn/client.conf' file.\n\n"
@echo "You can now launch OpenVPN + Transmission manually by running:"
@echo -e "\n service openvpn start\n\n"
@echo -e "To stop Transmission and OpenVPN, run:"
@echo -e "\n service openvpn stop\n\n"
@echo "Enjoy!"