fixes
All checks were successful
Publish Docker Image / docker (push) Successful in 1m32s

This commit is contained in:
Lee 2024-08-28 02:57:25 +01:00
parent 6430dc5bc4
commit 7d861aad76

@ -14,15 +14,14 @@ class AddSubPathCommand(Command):
router = args[0]
domain = args[1]
path = args[2]
serviceHost = args[3]
subPathName = "strip-" + router + "-" + path + "-prefix"
# Fix the path
if path.startswith("/") == False:
path = "/" + path
serviceHost = args[3]
subPathName = domain + path
if traefikConfig.hasPathRewrite(subPathName):
print(f"Sub path for \"{router}\" already exists")
print(f"Sub path for \"{domain}{path}\" already exists")
return
if traefikConfig.hasRouter(router) == False: