-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
18 lines (15 loc) · 971 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import getpass
from os import system
system("sudo dpkg -i expressvpn_2.3.4-1_amd64.deb")
system("expressvpn activate")
system("expressvpn preferences set send_diagnostics false")
system("pip install -r requirements.txt")
print("\nConfigure .env for notifier app:\n")
with open("notifier/.env", "a") as env_file:
env_file.write("VPN_COUNTRY_CODE="+input("VPN_COUNTRY_CODE (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) = ")+"\n")
env_file.write("EMAILER_HOST="+input("EMAILER_HOST (your email's host address) = ")+"\n")
env_file.write("EMAILER_PORT="+input("EMAILER_PORT (usually 465 since we use SSL) = ")+"\n")
env_file.write("EMAILER_EMAIL="+input("EMAILER_EMAIL = ")+"\n")
env_file.write("EMAILER_PASSWORD="+getpass.getpass("EMAILER_PASSWORD = ")+"\n")
env_file.write("EMAILS_TO_NOTIFY="+input("EMAILS_TO_NOTIFY (separated by ,) = ")+"\n")
env_file.write("CHECKING_DELAY="+input("CHECKING_DELAY (in seconds; recommended is 10) = "))