mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
apache: Move diagnostics for checking URLs into apache module
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
c617cecc02
commit
e0dba2cc17
10 files changed
+217
-113
No files matched your search
+2
-3
@@ -26,7 +26,7 @@ import re
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from plinth import action_utils
|
||||
from plinth.modules.apache.components import check_url
|
||||
|
||||
AUTO_CONF_FILE = '/etc/apt/apt.conf.d/20auto-upgrades'
|
||||
LOG_FILE = '/var/log/unattended-upgrades/unattended-upgrades.log'
|
||||
@@ -129,8 +129,7 @@ def _is_release_file_available(protocol):
|
||||
if protocol == 'tor+http':
|
||||
wrapper = 'torsocks'
|
||||
|
||||
result = action_utils.check_url(BUSTER_BACKPORTS_RELEASE_FILE_URL,
|
||||
wrapper=wrapper)
|
||||
result = check_url(BUSTER_BACKPORTS_RELEASE_FILE_URL, wrapper=wrapper)
|
||||
return result == 'passed'
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user