Fix disabling hsts

This commit is contained in:
VirtuBox
2024-06-02 23:28:54 +02:00
parent 582ececbdc
commit 6177647a6f
2 changed files with 2 additions and 2 deletions

View File

@@ -370,7 +370,7 @@ class WOFileUtils():
def enabledisable(self, path, enable=True):
"""Switch conf from .conf.disabled to .conf or vice-versa"""
if enable:
if enable is True:
Log.debug(self, "Check if disabled file exist")
if os.path.exists('{0}.disabled'.format(path)):
Log.debug(self, "Moving .disabled file")