owncloud: Implement diagnostics

This commit is contained in:
Sunil Mohan Adapa 2015-08-21 20:10:14 +05:30 committed by James Valleroy
parent 4870e7dba3
commit 8179e94d64
2 changed files with 16 additions and 0 deletions

View File

@ -22,6 +22,18 @@ Plinth module to configure ownCloud
from . import owncloud
from .owncloud import init
from plinth import action_utils
__all__ = ['owncloud', 'init']
depends = ['plinth.modules.apps']
def diagnose():
"""Run diagnostics and return the results."""
results = []
results.extend(action_utils.diagnose_url_on_all(
'https://{host}/roundcube', extra_options=['--no-check-certificate']))
return results

View File

@ -37,6 +37,10 @@
Visit this URL to set up the initial administration account for
ownCloud.</p>
{% include "diagnostics_button.html" with module="owncloud" %}
<h3>Configuration</h3>
<form class="form" method="post">
{% csrf_token %}