Code works now from how it looks

This commit is contained in:
2026-01-25 00:04:48 +01:00
parent 72e5bdfdf5
commit c253398809

View File

@@ -46,7 +46,7 @@ OPNSENSEMIRRORLISTV6 = "/etc/debmirror/OPNsenseMirrorListV6"
# Custom # Custom
EXTRAURL = [] EXTRAURL = []
if os.getenv("EXTRA_REPOS", 1): if os.getenv("EXTRA_REPOS", True):
try: try:
with open(os.getenv("REPOFILE", "customRepoList.list"), 'r') as repoListFile: with open(os.getenv("REPOFILE", "customRepoList.list"), 'r') as repoListFile:
for repoUrl in repoListFile: for repoUrl in repoListFile:
@@ -388,21 +388,21 @@ def customLinksJob():
if __name__ == "__main__": if __name__ == "__main__":
if os.getenv("EXTRA_REPOS", 1): if os.getenv("EXTRA_REPOS", True):
customLinksJob() customLinksJob()
if os.getenv("PROXMOX_REPOS", 1): # if os.getenv("PROXMOX_REPOS", True):
proxmoxJob() # proxmoxJob()
if os.getenv("DOCKER_REPOS", 1): # if os.getenv("DOCKER_REPOS", True):
dockerJob() # dockerJob()
if os.getenv("DEBIAN_REPOS", 1): # if os.getenv("DEBIAN_REPOS", True):
debianJob() # debianJob()
if os.getenv("OPNSENSE_REPOS", 1): # if os.getenv("OPNSENSE_REPOS", True):
opnsenseJob() # opnsenseJob()