mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
Deal with ownCloud removal from Debian
It has been decided that FreedomBox will no longer support ownCloud due it's removal from Debian. To deal with this: - Don't show ownCloud in Plinth any more for new users. - For users who have already installed ownCloud, show a warning message that they need to migrate away from ownCloud or need to manage it manually.
This commit is contained in:
parent
4e531d8686
commit
60e52d2729
@ -21,6 +21,7 @@ Plinth module to configure ownCloud
|
|||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
import os
|
||||||
|
|
||||||
from plinth import actions
|
from plinth import actions
|
||||||
from plinth import action_utils
|
from plinth import action_utils
|
||||||
@ -53,6 +54,11 @@ service = None
|
|||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Initialize the ownCloud module"""
|
"""Initialize the ownCloud module"""
|
||||||
|
# XXX: ownCloud has been removed from Debian
|
||||||
|
if not os.path.isfile('/etc/owncloud/config.php') and \
|
||||||
|
not os.path.isfile('/etc/owncloud/autoconfig.php'):
|
||||||
|
return
|
||||||
|
|
||||||
menu = cfg.main_menu.get('apps:index')
|
menu = cfg.main_menu.get('apps:index')
|
||||||
menu.add_urlname(title, 'glyphicon-picture', 'owncloud:index', 700)
|
menu.add_urlname(title, 'glyphicon-picture', 'owncloud:index', 700)
|
||||||
|
|
||||||
|
|||||||
@ -23,6 +23,17 @@
|
|||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
|
|
||||||
|
<div class="alert alert-danger" role="alert">
|
||||||
|
<span class="glyphicon glyphicon-exclamation-sign"
|
||||||
|
aria-hidden="true"></span>
|
||||||
|
<span class="sr-only">Error:</span>
|
||||||
|
{% blocktrans trimmed %}
|
||||||
|
ownCloud is no longer supported by {{ box_name }} due it's
|
||||||
|
removal from Debian. Please migrate your data to an alternative
|
||||||
|
solution or manage ownCloud manually from the command line.
|
||||||
|
{% endblocktrans %}
|
||||||
|
</div>
|
||||||
|
|
||||||
{% include "diagnostics_button.html" with module="owncloud" %}
|
{% include "diagnostics_button.html" with module="owncloud" %}
|
||||||
|
|
||||||
<h3>{% trans "Configuration" %}</h3>
|
<h3>{% trans "Configuration" %}</h3>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user