mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
action_utils: Introduce utility for setting debconf answers
Tests: mldonkey - Installs - /etc/default/mldonkey-server has LAUNCH_AT_STARTUP=true - systemctl status mldonkey-server shows daemon running ejabberd - Installs - /etc/ejabberd/ejabberd.yml has domainname properly configured privoxy - Installs - /etc/privoxy/config has listen-address set to '[::]:8118' roundcube - Installs and works - /etc/roundcube/debian-db.php contains dbtype sqlite3 ttrss - Installs and works - /etc/ttrss/database.php has dbtype 'pgsql'. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
12cf790dcd
commit
ca8ea9427c
7 files changed
+34
-35
No files matched your search
+12
-13
@@ -129,21 +129,20 @@ def subcommand_disable_user_registrations(_):
|
||||
def subcommand_pre_install(_):
|
||||
"""Pre installation configuration for diaspora"""
|
||||
presets = [
|
||||
b'diaspora-common diaspora-common/url string dummy_domain_name',
|
||||
b'diaspora-common diaspora-common/dbpass note ',
|
||||
b'diaspora-common diaspora-common/enablessl boolean false',
|
||||
b'diaspora-common diaspora-common/useletsencrypt string false',
|
||||
b'diaspora-common diaspora-common/services multiselect ',
|
||||
b'diaspora-common diaspora-common/ssl boolean false',
|
||||
b'diaspora-common diaspora-common/pgsql/authmethod-admin string ident',
|
||||
b'diaspora-common diaspora-common/letsencrypt boolean false',
|
||||
b'diaspora-common diaspora-common/remote/host string localhost',
|
||||
b'diaspora-common diaspora-common/database-type string pgsql',
|
||||
b'diaspora-common diaspora-common/dbconfig-install boolean true'
|
||||
'diaspora-common diaspora-common/url string dummy_domain_name',
|
||||
'diaspora-common diaspora-common/dbpass note ',
|
||||
'diaspora-common diaspora-common/enablessl boolean false',
|
||||
'diaspora-common diaspora-common/useletsencrypt string false',
|
||||
'diaspora-common diaspora-common/services multiselect ',
|
||||
'diaspora-common diaspora-common/ssl boolean false',
|
||||
'diaspora-common diaspora-common/pgsql/authmethod-admin string ident',
|
||||
'diaspora-common diaspora-common/letsencrypt boolean false',
|
||||
'diaspora-common diaspora-common/remote/host string localhost',
|
||||
'diaspora-common diaspora-common/database-type string pgsql',
|
||||
'diaspora-common diaspora-common/dbconfig-install boolean true'
|
||||
]
|
||||
|
||||
for preset in presets:
|
||||
subprocess.check_output(['debconf-set-selections'], input=preset)
|
||||
action_utils.debconf_set_selections(presets)
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in new issue
Block a user