v2.5.3: fix disabled Update panel button

This commit is contained in:
orohi
2026-07-28 10:02:57 +03:00
parent a5b8f26db1
commit 5d63e5d6ef
6 changed files with 12 additions and 8 deletions
+4 -1
View File
@@ -105,7 +105,10 @@ class UpdateManager:
return os.path.exists('/.dockerenv') or os.environ.get('PANEL_IN_DOCKER') == '1'
def _docker_update_allowed(self) -> bool:
return os.environ.get('PANEL_UPDATE_ALLOW_DOCKER', '').strip().lower() in ('1', 'true', 'yes')
if os.environ.get('PANEL_UPDATE_DISABLE_DOCKER', '').strip().lower() in ('1', 'true', 'yes'):
return False
# In-container archive updates are allowed by default when /app is writable.
return True
def _app_root_writable(self) -> bool:
probe = os.path.join(self.app_root, '.panel_update_write_probe')