mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-09 22:43:44 +08:00
fix restart
This commit is contained in:
@@ -565,24 +565,3 @@ class SystemUtils:
|
||||
if unique_id:
|
||||
return unique_id
|
||||
return None
|
||||
|
||||
@staticmethod
|
||||
def set_system_modified():
|
||||
"""
|
||||
设置系统已修改标志
|
||||
"""
|
||||
try:
|
||||
if SystemUtils.is_docker():
|
||||
Path("/var/log/nginx/__moviepilot__").touch(exist_ok=True)
|
||||
except Exception as e:
|
||||
print(f"设置系统修改标志失败: {str(e)}")
|
||||
|
||||
@staticmethod
|
||||
def is_system_reset() -> bool:
|
||||
"""
|
||||
检查系统是否已被重置
|
||||
:return: 如果系统已重置,返回 True;否则返回 False
|
||||
"""
|
||||
if SystemUtils.is_docker():
|
||||
return not Path("/var/log/nginx/__moviepilot__").exists()
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user