mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix flag path
This commit is contained in:
+2
-2
@@ -573,7 +573,7 @@ class SystemUtils:
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
if SystemUtils.is_docker():
|
if SystemUtils.is_docker():
|
||||||
Path("/__moviepilot__").touch(exist_ok=True)
|
Path("/var/log/nginx/__moviepilot__").touch(exist_ok=True)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"设置系统修改标志失败: {str(e)}")
|
print(f"设置系统修改标志失败: {str(e)}")
|
||||||
|
|
||||||
@@ -584,5 +584,5 @@ class SystemUtils:
|
|||||||
:return: 如果系统已重置,返回 True;否则返回 False
|
:return: 如果系统已重置,返回 True;否则返回 False
|
||||||
"""
|
"""
|
||||||
if SystemUtils.is_docker():
|
if SystemUtils.is_docker():
|
||||||
return not Path("/__moviepilot__").exists()
|
return not Path("/var/log/nginx/__moviepilot__").exists()
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user