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

+11 -6
View File
@@ -36,18 +36,23 @@ def parse_arguments():
'pre-install',
help='Preseed debconf values before packages are installed.')
# Preseed debconf values before packages are installed.
# pre_install.add_argument(
# '--thirdpartyservices',
# help='Third party services enabled: Facebook, Twitter, Tumblr, Wordpress')
subparsers.add_parser('enable', help='Enable diaspora*')
subparsers.add_parser('disable', help='Disable diaspora*')
subparsers.add_parser('disable-ssl', help="Disable SSL on the diaspora* application server")
return parser.parse_args()
def subcommand_disable_ssl(_):
"""
Disable ssl in the diaspora configuration
as the apache server takes care of ssl
"""
subprocess.call(["sed", "-i",
"s/#require_ssl: true/require_ssl: false/g",
"/etc/diaspora/diaspora.yml"])
def subcommand_pre_install(arguments):
"""Pre installation configuration for diaspora"""
presets= [