fix flag path

This commit is contained in:
jxxghp
2025-06-09 21:58:02 +08:00
parent b484a52b6d
commit 49dae92b8e

View File

@@ -573,7 +573,7 @@ class SystemUtils:
"""
try:
if SystemUtils.is_docker():
Path("/__moviepilot__").touch(exist_ok=True)
Path("/var/log/nginx/__moviepilot__").touch(exist_ok=True)
except Exception as e:
print(f"设置系统修改标志失败: {str(e)}")
@@ -584,5 +584,5 @@ class SystemUtils:
:return: 如果系统已重置,返回 True否则返回 False
"""
if SystemUtils.is_docker():
return not Path("/__moviepilot__").exists()
return not Path("/var/log/nginx/__moviepilot__").exists()
return False