InProgress Revamp of domainLookup
This commit is contained in:
@@ -6,8 +6,8 @@ from whatDomain import *
|
||||
# Debian
|
||||
DEBMIRRORURL = str(os.getenv("DEBMIRRORURL", "https://www.debian.org/mirror/list"))
|
||||
DEBSECURITYURL = str(os.getenv("DEBSECURITYURL", "https://security.debian.org/debian-security/"))
|
||||
DEBIANMIRRORLISTV4 = "/etc/debmirror/DebianMirrorListV4"
|
||||
DEBIANMIRRORLISTV6 = "/etc/debmirror/DebianMirrorListV6"
|
||||
DEBIANMIRRORLISTV4 = "/etc/debmirror/Repo-IP-lists/DebianMirrorListV4"
|
||||
DEBIANMIRRORLISTV6 = "/etc/debmirror/Repo-IP-lists/DebianMirrorListV6"
|
||||
|
||||
target_countries = set([
|
||||
# Europe
|
||||
@@ -26,29 +26,29 @@ target_countries = set([
|
||||
|
||||
# Proxmox
|
||||
PROXURL = ["http://download.proxmox.com/debian/", "https://enterprise.proxmox.com/debian/pve/",]
|
||||
PROXMOXMIRRORLISTV4 = "/etc/debmirror/ProxmoxMirrorListV4"
|
||||
PROXMOXMIRRORLISTV6 = "/etc/debmirror/ProxmoxMirrorListV6"
|
||||
PROXMOXMIRRORLISTV4 = "/etc/debmirror/Repo-IP-lists/ProxmoxMirrorListV4"
|
||||
PROXMOXMIRRORLISTV6 = "/etc/debmirror/Repo-IP-lists/ProxmoxMirrorListV6"
|
||||
|
||||
|
||||
# Docker
|
||||
DOCKERURLS = ["https://download.docker.com/linux/debian/",
|
||||
"https://nvidia.github.io/libnvidia-container/stable/deb/",
|
||||
"https://nvidia.github.io/libnvidia-container/experimental/deb/"]
|
||||
DOCKERMIRRORLISTV4 = "/etc/debmirror/DockerMirrorListV4"
|
||||
DOCKERMIRRORLISTV6 = "/etc/debmirror/DockerMirrorListV6"
|
||||
DOCKERMIRRORLISTV4 = "/etc/debmirror/Repo-IP-lists/DockerMirrorListV4"
|
||||
DOCKERMIRRORLISTV6 = "/etc/debmirror/Repo-IP-lists/DockerMirrorListV6"
|
||||
|
||||
|
||||
# OPNsense
|
||||
OPNSNSMIRRORURL = str(os.getenv("OPNSNSMIRRORURL", "https://opnsense.org/download/#full-mirror-listing"))
|
||||
OPNSENSEMIRRORLISTV4 = "/etc/debmirror/OPNsenseMirrorListV4"
|
||||
OPNSENSEMIRRORLISTV6 = "/etc/debmirror/OPNsenseMirrorListV6"
|
||||
OPNSENSEMIRRORLISTV4 = "/etc/debmirror/Repo-IP-lists/OPNsenseMirrorListV4"
|
||||
OPNSENSEMIRRORLISTV6 = "/etc/debmirror/Repo-IP-lists/OPNsenseMirrorListV6"
|
||||
|
||||
|
||||
# Custom
|
||||
EXTRAURL = []
|
||||
if os.getenv("EXTRA_REPOS", True):
|
||||
try:
|
||||
with open(os.getenv("REPOFILE", "customRepoList.list"), 'r') as repoListFile:
|
||||
with open(os.getenv("REPOFILE", "/etc/debmirror/customRepoList.list"), 'r') as repoListFile:
|
||||
for repoUrl in repoListFile:
|
||||
# print(repoUrl.strip())
|
||||
EXTRAURL.append(repoUrl.strip())
|
||||
@@ -56,8 +56,8 @@ if os.getenv("EXTRA_REPOS", True):
|
||||
print("File not passed")
|
||||
exit(2)
|
||||
|
||||
CUSTOMMIRRORLISTV4 = "/etc/debmirror/CustomMirrorListV4"
|
||||
CUSTOMMIRRORLISTV6 = "/etc/debmirror/CustomMirrorListV6"
|
||||
CUSTOMMIRRORLISTV4 = "/etc/debmirror/Repo-IP-lists/CustomMirrorListV4"
|
||||
CUSTOMMIRRORLISTV6 = "/etc/debmirror/Repo-IP-lists/CustomMirrorListV6"
|
||||
|
||||
|
||||
# Helper
|
||||
|
||||
Reference in New Issue
Block a user