diaspora: Disabled SSL

Created a custom command in Plinth to disable ssl for the diaspora pod
on the freedombox.
This commit is contained in:
Joseph Nuthalpati authored and James Valleroy committed 2017-05-06 07:25:37 -04:00
1 parent d269a0a645
commit 742fe48a29
3 files changed
+23 -7

No files matched your search

+4
View File
@@ -15,6 +15,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import subprocess
from django.utils.translation import ugettext_lazy as _
from plinth import actions, action_utils, cfg, frontpage, service as service_module
@@ -65,6 +67,7 @@ def setup(helper, old_version=None):
"""Install and configure the module."""
helper.call('pre', actions.superuser_run, 'diaspora', ['pre-install'])
helper.install(managed_packages)
helper.call('custom_config', actions.superuser_run, 'diaspora', ['disable-ssl'])
helper.call('post', actions.superuser_run, 'diaspora', ['enable'])
global service
if service is None:
@@ -81,6 +84,7 @@ def setup(helper, old_version=None):
def add_shortcut():
"""Add shortcut to diaspora on the Plinth homepage"""
frontpage.add_shortcut(
'diaspora', title, url='/diaspora', login_required=True)