This commit is contained in:
Alexey Berezhok
2026-07-14 00:21:08 +03:00
parent 92c186f7da
commit ea55a7d4ba

View File

@@ -319,7 +319,7 @@ def make_nginx_custom_template() -> None:
return False
try:
result = subprocess.run(
["patch", "-p1", "-i", patch_file],
["patch", "-p1", target, patch_file],
cwd=target_dir,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
@@ -483,7 +483,7 @@ if __name__ == "__main__":
site_state({ domain: "on"})
else:
_log("mod_rewrite should be disbled")
if mod_rewrite_global in ("1", "on"):
if mod_rewrite_global not in ("1", "on"):
_log("Global state enabled")
if os.path.isdir(path_to_global_config):
mod_file_path = os.path.join(path_to_global_config, "mod_rewrite.conf")