[Pkg-mailman-hackers] Bug#1053502: mailman3-web: Package failed to install during upgrade from Debian 11 to 12

Steven Verhulst sverhulst at vub.be
Thu Oct 19 13:51:39 BST 2023


Hello Pierre-Elliot,

Here is the log you requested.

Kind regards,

Steven Verhulst
SISC (Shared ICT Services Centre) - SoftWeb
[M] sverhulst at vub.be<mailto:sverhulst at vub.be>

________________________________
From: Pierre-Elliott Bécue
Sent: Friday, October 06, 2023 15:07
To: Steven Verhulst
Cc: 1053502 at bugs.debian.org
Subject: Re: Bug#1053502: mailman3-web: Package failed to install during upgrade from Debian 11 to 12

Please keep the bug report CC-ed.

Steven Verhulst <sverhulst at vub.be> wrote on 06/10/2023 at 13:16:09+0200:

> Hi,
>
>
>
> /etc/mysql/debian.cnf is a config file auto generated by some debian scripts.
>
> It contains host / user information for mysql connection.
>
> According to the contents this file is deprecated and should no longer be used:
>
>
>
> # THIS FILE IS OBSOLETE. STOP USING IT IF POSSIBLE.
>
> # This file exists only for backwards compatibility for
>
> # tools that run '--defaults-file=/etc/mysql/debian.cnf'
>
> # and have root level access to the local filesystem.
>
> # With those permissions one can run 'mariadb' directly
>
> # anyway thanks to unix socket authentication and hence
>
> # this file is useless. See package README for more info.
>
> # THIS FILE WILL BE REMOVED IN A FUTURE DEBIAN RELEASE.
>
>
>
>
>
> “sed: -e expression #2, char 82: unterminated `s' command”
>
> Makes me believe that there is an issue with with one the sed
> expression in the post-installation script.

Yes, I am aware of your beliefs, and they're probably founded, but to be
able to dig in I need some context.

If you did not fix manually the issue, could you add "set -x" at the
beginning of /var/lib/dpkg/info/mailman3-web.postinst script and run a
dpkg --configure mailman3-web and give me the output?

If some passwords fall in the output, of course feel free to censor
them.

--
PEB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-mailman-hackers/attachments/20231019/1dca2f4b/attachment-0001.htm>
-------------- next part --------------
Determining localhost credentials from /etc/mysql/debian.cnf: failed (hosts not equal).
+ . /usr/share/debconf/confmodule
+ [ ! 1 ]
+ [ -z  ]
+ exec
+ [  ]
+ exec
+ DEBCONF_REDIR=1
+ export DEBCONF_REDIR
+ . /usr/share/dbconfig-common/dpkg/postinst
+ dbc_dbfile_owner=www-data:www-data
+ dbc_dbfile_perms=0640
+ dbc_go mailman3-web configure 0+20200530-2.1
+ local importing_from_non_dbc upgrading reconfiguring f tsubstfile upgrades_pending dbc_dumpfile _dbc_asuser reinstall nowtime need_adminpw _tmp_result
+ . /usr/share/dbconfig-common/dpkg/common
+ . /usr/share/dbconfig-common/internal/common
+ [  ]
+ _dbc_logfile=/var/log/dbconfig-common/dbc.log
+ _dbc_debug (postinst) dbc_go() mailman3-web configure 0+20200530-2.1
+ [  ]
+ dbc_no_thanks
+ local no_thanks_status
+ dpkg-query -W -f=${db:Status-Want} dbconfig-no-thanks
+ no_thanks_status=unknown
+ [ unknown = install ]
+ [ unknown = hold ]
+ return 1
+ dbc_config mailman3-web configure 0+20200530-2.1
+ _dbc_debug dbc_config() mailman3-web configure 0+20200530-2.1
+ [  ]
+ dbc_share=/usr/share/dbconfig-common
+ dbc_package=mailman3-web
+ echo mailman3-web
+ cut -d_ -f1
+ dbc_basepackage=mailman3-web
+ dbc_command=configure
+ dbc_oldversion=0+20200530-2.1
+ _dbc_sanity_check package command
+ [ 2 -ne 0 ]
+ [ -z mailman3-web ]
+ shift
+ [ 1 -ne 0 ]
+ [ -z configure ]
+ shift
+ [ 0 -ne 0 ]
+ dbc_confdir=/etc/dbconfig-common
+ dbc_globalconfig=/etc/dbconfig-common/config
+ dbc_packageconfig=/etc/dbconfig-common/mailman3-web.conf
+ dbc_standard_templates=database-type dbconfig-install dbconfig-upgrade dbconfig-remove dbconfig-reinstall password-confirm app-password-confirm purge upgrade-backup passwords-do-not-match install-error upgrade-error remove-error internal/reconfiguring internal/skip-preseed missing-db-package-error
+ dbc_mysql_templates=mysql/authplugin mysql/method remote/host remote/newhost mysql/app-pass mysql/admin-user mysql/admin-pass remote/port db/dbname db/app-user
+ dbc_pgsql_templates=pgsql/method remote/host remote/newhost pgsql/app-pass pgsql/admin-user pgsql/admin-pass remote/port pgsql/authmethod-admin pgsql/authmethod-user pgsql/changeconf pgsql/manualconf db/dbname db/app-user pgsql/no-empty-passwords
+ dbc_sqlite_templates=db/dbname db/basepath
+ dbc_authenticated_dbtypes=mysql pgsql
+ dbc_remote_dbtypes=mysql pgsql
+ dbc_fs_dbtypes=sqlite sqlite3
+ [ -f /etc/dbconfig-common/config ]
+ . /etc/dbconfig-common/config
+ dbc_remember_admin_pass=false
+ dbc_remote_questions_default=false
+ [ !  ]
+ dbc_prio_low=low
+ [ !  ]
+ dbc_prio_medium=medium
+ [ !  ]
+ dbc_prio_high=high
+ [ !  ]
+ dbc_prio_critical=critical
+ [ false = true ]
+ dbc_remote_questions_priority=low
+ dbc_default_pgsql_authmethod_admin=ident
+ dbc_set_dbtype_defaults
+ local happy supported_dbtypes comma
+ _dbc_debug dbc_set_dbtype_defaults() 
+ [  ]
+ [  ]
+ [  ]
+ dbc_default_basepath=
+ dbc_db_installed_cmd=dbc__db_installed
+ dbc_register_templates=database-type dbconfig-install dbconfig-upgrade dbconfig-remove dbconfig-reinstall password-confirm app-password-confirm purge upgrade-backup passwords-do-not-match install-error upgrade-error remove-error internal/reconfiguring internal/skip-preseed missing-db-package-error mysql/authplugin mysql/method remote/host remote/newhost mysql/app-pass mysql/admin-user mysql/admin-pass remote/port db/dbname db/app-user pgsql/method remote/host remote/newhost pgsql/app-pass pgsql/admin-user pgsql/admin-pass remote/port pgsql/authmethod-admin pgsql/authmethod-user pgsql/changeconf pgsql/manualconf db/dbname db/app-user pgsql/no-empty-passwords db/dbname db/basepath
+ [  ]
+ dbc_dgi_on_manual=true
+ [ configure = configure ]
+ dbc_read_package_debconf
+ local tmp_dballow
+ _dbc_debug dbc_read_package_debconf() 
+ [  ]
+ _dbc_sanity_check package
+ [ 1 -ne 0 ]
+ [ -z mailman3-web ]
+ shift
+ [ 0 -ne 0 ]
+ [  ]
+ [ !  ]
+ db_get mailman3-web/database-type
+ _db_cmd GET mailman3-web/database-type
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET mailman3-web/database-type
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=mysql
+ return 0
+ dbc_dbtype=mysql
+ dbc_set_dbtype_defaults mysql
+ local happy supported_dbtypes comma
+ _dbc_debug dbc_set_dbtype_defaults() mysql
+ [  ]
+ [  ]
+ [  ]
+ dbc_default_basepath=
+ dbc_db_installed_cmd=dbc_mysql_db_installed
+ . /usr/share/dbconfig-common/internal/mysql
+ . /usr/share/dbconfig-common/internal/common
+ [ /var/log/dbconfig-common/dbc.log ]
+ dbc_createuser_cmd=dbc_mysql_createuser
+ dbc_checkuser_cmd=dbc_mysql_check_user
+ dbc_createdb_cmd=dbc_mysql_createdb
+ dbc_dropdb_cmd=dbc_mysql_dropdb
+ dbc_dropuser_cmd=dbc_mysql_dropuser
+ dbc_sqlexec_cmd=dbc_mysql_exec_command
+ dbc_sqlfile_cmd=dbc_mysql_exec_file
+ dbc_dump_cmd=dbc_mysql_dump
+ dbc_register_templates=database-type dbconfig-install dbconfig-upgrade dbconfig-remove dbconfig-reinstall password-confirm app-password-confirm purge upgrade-backup passwords-do-not-match install-error upgrade-error remove-error internal/reconfiguring internal/skip-preseed missing-db-package-error mysql/authplugin mysql/method remote/host remote/newhost mysql/app-pass mysql/admin-user mysql/admin-pass remote/port db/dbname db/app-user
+ dbc_default_admin=root
+ echo mailman3-web
+ cut -c -16
+ tr -d +.
+ dbc_default_dbuser=mailman3-web
+ dbc_default_port=3306
+ dbc_dbvendor=MySQL
+ dbc_dbpackage=mysql-server
+ dbc_dbclientpackage=mysql-client
+ [  ]
+ db_get mailman3-web/dbconfig-install
+ _db_cmd GET mailman3-web/dbconfig-install
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET mailman3-web/dbconfig-install
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=true
+ return 0
+ dbc_install=true
+ db_get mailman3-web/dbconfig-upgrade
+ _db_cmd GET mailman3-web/dbconfig-upgrade
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET mailman3-web/dbconfig-upgrade
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=true
+ return 0
+ dbc_upgrade=true
+ db_get mailman3-web/dbconfig-remove
+ _db_cmd GET mailman3-web/dbconfig-remove
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET mailman3-web/dbconfig-remove
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=true
+ return 0
+ dbc_remove=true
+ echo mysql pgsql
+ grep -q mysql
+ db_get mailman3-web/db/app-user
+ _db_cmd GET mailman3-web/db/app-user
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET mailman3-web/db/app-user
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=mailman3web at localhost
+ return 0
+ echo mailman3web at localhost
+ sed s/\(.*\)@\([^@]*\)/\1/
+ dbc_dbuser=mailman3web
+ echo mailman3web at localhost
+ sed -e s/^[^@]*$// -e s/.*@\([^@]*\)/\1/
+ tmp_dballow=localhost
+ [ localhost ]
+ dbc_dballow=localhost
+ [ mysql ]
+ db_get mailman3-web/mysql/app-pass
+ _db_cmd GET mailman3-web/mysql/app-pass
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET mailman3-web/mysql/app-pass
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET={password}
+ return 0
+ dbc_dbpass={password}
+ db_get mailman3-web/mysql/admin-user
+ _db_cmd GET mailman3-web/mysql/admin-user
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET mailman3-web/mysql/admin-user
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=root
+ return 0
+ dbc_dbadmin=root
+ db_get mailman3-web/mysql/admin-pass
+ _db_cmd GET mailman3-web/mysql/admin-pass
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET mailman3-web/mysql/admin-pass
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=
+ return 0
+ dbc_dbadmpass=
+ echo mysql pgsql
+ grep -q mysql
+ db_get mailman3-web/remote/host
+ _db_cmd GET mailman3-web/remote/host
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET mailman3-web/remote/host
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=localhost
+ return 0
+ dbc_dbserver=localhost
+ db_get mailman3-web/remote/port
+ _db_cmd GET mailman3-web/remote/port
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET mailman3-web/remote/port
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=3306
+ return 0
+ dbc_dbport=3306
+ [ ! 3306 ]
+ echo sqlite sqlite3
+ grep -qa mysql
+ db_get mailman3-web/db/dbname
+ _db_cmd GET mailman3-web/db/dbname
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET mailman3-web/db/dbname
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=mailman3web
+ return 0
+ dbc_dbname=mailman3web
+ [ -z mailman3web ]
+ [ !  ]
+ db_get mailman3-web/mysql/authplugin
+ _db_cmd GET mailman3-web/mysql/authplugin
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET mailman3-web/mysql/authplugin
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=default
+ return 0
+ dbc_authplugin=default
+ [  ]
+ dbc_write_package_config
+ local iformat ofile tfile
+ _dbc_debug dbc_write_package_config() 
+ [  ]
+ _dbc_sanity_check packageconfig
+ [ 1 -ne 0 ]
+ [ -z /etc/dbconfig-common/mailman3-web.conf ]
+ shift
+ [ 0 -ne 0 ]
+ [  ]
+ echo dbconfig-common: writing config to /etc/dbconfig-common/mailman3-web.conf
dbconfig-common: writing config to /etc/dbconfig-common/mailman3-web.conf
+ dbc_mktemp dbconfig-package-config.XXXXXX
+ local tfile ttemplate
+ [ dbconfig-package-config.XXXXXX ]
+ ttemplate=dbconfig-package-config.XXXXXX
+ mktemp -t dbconfig-package-config.XXXXXX
+ tfile=/tmp/dbconfig-package-config.V7lX8y
+ [ ! -f /tmp/dbconfig-package-config.V7lX8y ]
+ echo /tmp/dbconfig-package-config.V7lX8y
+ tfile=/tmp/dbconfig-package-config.V7lX8y
+ [  ]
+ [  = TCP/IP + SSL ]
+ dbc_sq_escape true
+ sed -e s,','\\'',g
+ dbc_sq_escape true
+ sed -e s,','\\'',g
+ dbc_sq_escape true
+ sed -e s,','\\'',g
+ dbc_sq_escape mysql
+ sed -e s,','\\'',g
+ dbc_sq_escape mailman3web
+ sed -e s,','\\'',g
+ dbc_sq_escape {password}
+ sed -e s,','\\'',g
+ dbc_sq_escape localhost
+ sed -e s,','\\'',g
+ dbc_sq_escape localhost
+ sed -e s,','\\'',g
+ dbc_sq_escape 3306
+ sed -e s,','\\'',g
+ dbc_sq_escape mailman3web
+ sed -e s,','\\'',g
+ dbc_sq_escape root
+ sed -e s,','\\'',g
+ dbc_sq_escape
+ sed -e s,','\\'',g
+ dbc_sq_escape
+ sed -e s,','\\'',g
+ dbc_sq_escape
+ sed -e s,','\\'',g
+ dbc_sq_escape
+ sed -e s,','\\'',g
+ cat
+ dirname /etc/dbconfig-common/mailman3-web.conf
+ mkdir -p /etc/dbconfig-common
+ ucf --debconf-ok /tmp/dbconfig-package-config.V7lX8y /etc/dbconfig-common/mailman3-web.conf
+ ucfr mailman3-web /etc/dbconfig-common/mailman3-web.conf
+ rm -f /tmp/dbconfig-package-config.V7lX8y
+ [ true != true ]
+ [  ]
+ dbc_read_package_config
+ local _tmp_dbuser _tmp_basepath _tmp_dbname
+ _dbc_debug dbc_read_package_config() 
+ [  ]
+ _dbc_sanity_check package packageconfig
+ [ 2 -ne 0 ]
+ [ -z mailman3-web ]
+ shift
+ [ 1 -ne 0 ]
+ [ -z /etc/dbconfig-common/mailman3-web.conf ]
+ shift
+ [ 0 -ne 0 ]
+ [  ]
+ dbc_install=true
+ dbc_upgrade=true
+ [ -f /etc/dbconfig-common/mailman3-web.conf ]
+ . /etc/dbconfig-common/mailman3-web.conf
+ dbc_install=true
+ dbc_upgrade=true
+ dbc_remove=true
+ dbc_dbtype=mysql
+ dbc_dbuser=mailman3web
+ dbc_dbpass={password}
+ dbc_dballow=localhost
+ dbc_dbserver=localhost
+ dbc_dbport=3306
+ dbc_dbname=mailman3web
+ dbc_dbadmin=root
+ dbc_basepath=
+ dbc_ssl=
+ dbc_authmethod_admin=
+ dbc_authmethod_user=
+ [ ! localhost ]
+ [ true != true ]
+ [  ]
+ [ 0+20200530-2.1 ]
+ db_get mailman3-web/internal/reconfiguring
+ _db_cmd GET mailman3-web/internal/reconfiguring
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET mailman3-web/internal/reconfiguring
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=true
+ return 0
+ reconfiguring=true
+ [ true = false ]
+ db_get mailman3-web/dbconfig-reinstall
+ _db_cmd GET mailman3-web/dbconfig-reinstall
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET mailman3-web/dbconfig-reinstall
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=false
+ return 0
+ reinstall=false
+ [ false = false ]
+ dbc_postinst_cleanup
+ _dbc_debug dbc_postinst_cleanup() 
+ [  ]
+ echo mysql pgsql
+ grep -q mysql
+ [ false != true ]
+ dbc_forget_dbadmin_password
+ _dbc_debug dbc_forget_dbadmin_password() 
+ [  ]
+ echo dbconfig-common: flushing administrative password
dbconfig-common: flushing administrative password
+ db_reset mailman3-web/mysql/admin-pass
+ _db_cmd RESET mailman3-web/mysql/admin-pass
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n RESET mailman3-web/mysql/admin-pass
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=0
+ return 0
+ db_fset mailman3-web/mysql/admin-pass seen false
+ _db_cmd FSET mailman3-web/mysql/admin-pass seen false
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n FSET mailman3-web/mysql/admin-pass seen false
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=false
+ return 0
+ db_reset mailman3-web/password-confirm
+ _db_cmd RESET mailman3-web/password-confirm
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n RESET mailman3-web/password-confirm
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=0
+ return 0
+ db_fset mailman3-web/password-confirm seen false
+ _db_cmd FSET mailman3-web/password-confirm seen false
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n FSET mailman3-web/password-confirm seen false
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=false
+ return 0
+ [  != true ]
+ dbc_forget_app_password
+ _dbc_debug dbc_forget_app_password() 
+ [  ]
+ db_reset mailman3-web/mysql/app-pass
+ _db_cmd RESET mailman3-web/mysql/app-pass
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n RESET mailman3-web/mysql/app-pass
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=0
+ return 0
+ db_fset mailman3-web/mysql/app-pass seen false
+ _db_cmd FSET mailman3-web/mysql/app-pass seen false
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n FSET mailman3-web/mysql/app-pass seen false
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=false
+ return 0
+ db_reset mailman3-web/app-password-confirm
+ _db_cmd RESET mailman3-web/app-password-confirm
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n RESET mailman3-web/app-password-confirm
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=0
+ return 0
+ db_fset mailman3-web/app-password-confirm seen false
+ _db_cmd FSET mailman3-web/app-password-confirm seen false
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n FSET mailman3-web/app-password-confirm seen false
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=false
+ return 0
+ db_reset mailman3-web/internal/skip-preseed
+ _db_cmd RESET mailman3-web/internal/skip-preseed
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n RESET mailman3-web/internal/skip-preseed
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=0
+ return 0
+ db_reset mailman3-web/internal/reconfiguring
+ _db_cmd RESET mailman3-web/internal/reconfiguring
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n RESET mailman3-web/internal/reconfiguring
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=0
+ return 0
+ return 0
+ [ -e /usr/share/apache2/apache2-maintscript-helper ]
+ . /usr/share/apache2/apache2-maintscript-helper
+ [ -n  ]
+ EXPORT_APACHE2_MAINTSCRIPT_HELPER=1
+ [ -n  ]
+ [ -e /etc/apache2/envvars ]
+ . /etc/apache2/envvars
+ unset HOME
+ [  !=  ]
+ SUFFIX=
+ export APACHE_RUN_USER=www-data
+ export APACHE_RUN_GROUP=www-data
+ export APACHE_PID_FILE=/var/run/apache2/apache2.pid
+ export APACHE_RUN_DIR=/var/run/apache2
+ export APACHE_LOCK_DIR=/var/lock/apache2
+ export APACHE_LOG_DIR=/var/log/apache2
+ export LANG=C
+ export LANG
+ echo
+ APACHE2_MAINTSCRIPT_DEBUG=
+ [ -n  ]
+ APACHE2_MAINTSCRIPT_DEFER=
+ dpkg-query -f ${Status} -W apache2
+ egrep -q installed|triggers-awaited|triggers-pending
+ [ -z configure ]
+ APACHE2_MAINTSCRIPT_NAME=postinst
+ [ postinst ]
+ APACHE2_MAINTSCRIPT_PACKAGE=mailman3-web
+ [ -z mailman3-web ]
+ [ -z  ]
+ APACHE2_MAINTSCRIPT_METHOD=configure
+ [ -z  ]
+ APACHE2_MAINTSCRIPT_ARGUMENT=0+20200530-2.1
+ [ -e /usr/share/nginx ]
+ settings_local_new=
+ su_cmd=su --shell /bin/sh --command
+ django_admin=python3 /usr/bin/django-admin
+ django_admin_args=--verbosity 0 --no-color --pythonpath /usr/share/mailman3-web --settings settings
+ create_config
+ trap cleanup EXIT
+ mktemp
+ settings_local_new=/tmp/tmp.BeDjDn7X6S
+ cp -a /usr/share/mailman3-web/settings_local.py.sample /tmp/tmp.BeDjDn7X6S
+ [ -f /etc/dbconfig-common/mailman3-web.conf ]
+ . /etc/dbconfig-common/mailman3-web.conf
+ dbc_install=true
+ dbc_upgrade=true
+ dbc_remove=true
+ dbc_dbtype=mysql
+ dbc_dbuser=mailman3web
+ dbc_dbpass={password}
+ dbc_dballow=localhost
+ dbc_dbserver=localhost
+ dbc_dbport=3306
+ dbc_dbname=mailman3web
+ dbc_dbadmin=root
+ dbc_basepath=
+ dbc_ssl=
+ dbc_authmethod_admin=
+ dbc_authmethod_user=
+ sed -i -e s|^\(\s\+\)\('ENGINE':\)|\1#\2| /tmp/tmp.BeDjDn7X6S
+ sed -i -e s|^\(\s\+'NAME':\s*'\)\S\+\(',\s*\)|\1mailman3web\2| -e s|^\(\s\+'USER':\s*'\)\S\+\(',\s*\)|\1mailman3web\2| -e s|^\(\s\+'PASSWORD':\s*'\)\S\+\(',\s*\)|\{password}\2| -e s|^\(\s\+'HOST':\s*'\)\S*\(',\s*\)|\1localhost\2| /tmp/tmp.BeDjDn7X6S
+ sed -i -e s|^\(\s\+\)#\?\s*\('ENGINE': 'django.db.backends.mysql',\s*\)$|\1\2| -e s|^\(\s\+\)#\?\s*\('init_command': "SET sql_mode=.*",\s*\)$|\1\2| /tmp/tmp.BeDjDn7X6S
+ [ -f /etc/mailman3/mailman-web.py ]
+ sed -ne s/^SECRET_KEY = '\(\S\+\)'$/\1/p /etc/mailman3/mailman-web.py
+ secretkey={secretkey}
+ [ {secretkey} = change-this-on-your-production-server ]
+ [ -z {secretkey} ]
+ [ -f /etc/mailman3/mailman-web.py ]
+ sed -e 1,/^ADMINS = ($/d -e /^)$/,$d -e s|^.*'Mailman Suite Admin'.*'\(\S\+\)').*$|\1| /etc/mailman3/mailman-web.py
+ adminmail=     ('Mailman Suite Admin Ward', 'ward.poelmans at vub.be'),
     ('Mailman Suite Admin Steven', 'sverhulst at vub.be'),
+ [ -f /etc/mailman3/mailman-web.py ]
+ sed -ne s|^MAILMAN_REST_API_PASS = '\(\S\+\)'$|\1|p /etc/mailman3/mailman-web.py
+ restapipass={restapipass}
+ [ {restapipass} = restpass ]
+ [ -z  ]
+ [ -f /etc/mailman3/mailman.cfg ]
+ sed -ne s|^\s*admin_pass:\s*||p /etc/mailman3/mailman.cfg
+ restapipass={restapipass}
+ [ -f /etc/mailman3/mailman-web.py ]
+ sed -ne s|^MAILMAN_ARCHIVER_KEY = '\(\S\+\)'$|\1|p /etc/mailman3/mailman-web.py
+ archiverkey={archiverkey}
+ [ {archiverkey} = SecretArchiverAPIKey ]
+ [ -z {archiverkey} ]
+ db_get mailman3-web/emailname
+ _db_cmd GET mailman3-web/emailname
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET mailman3-web/emailname
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=listserv-test.vub.be
+ return 0
+ emailname=listserv-test.vub.be
+ db_get mailman3-web/superuser-mail
+ _db_cmd GET mailman3-web/superuser-mail
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET mailman3-web/superuser-mail
+ IFS=

+ read -r _db_internal_line
+ IFS= 

+ RET=sverhulst at vub.be
+ return 0
+ su_mail=sverhulst at vub.be
+ sed -i -e s|^\(\s*SECRET_KEY\s*=\s*'\)\S\+\('\s*\)$|\{secret_key}\2| -e /^ADMINS = ($/,/^)$/{s|'     ('Mailman Suite Admin XXXX', 'xxx.xxxx at vub.be'),
     ('Mailman Suite Admin Steven', 'sverhulst at vub.be'),'|'sverhulst at vub.be'|} -e s|^\(\s*MAILMAN_REST_API_PASS\s*=\s*'\)\S\+\('\s*\)|\1{restapipass}\2| -e s|^\(\s*MAILMAN_ARCHIVER_KEY\s*=\s*'\)\S\+\('\s*\)|\1{archiverkey}\2| -e s|^\(\s*EMAILNAME\s*=\s*'\)\S\+\('\s*\)|\1listserv-test.vub.be\2| /tmp/tmp.BeDjDn7X6S
sed: -e expression #2, char 82: unterminated `s' command
+ cleanup
+ [ /tmp/tmp.BeDjDn7X6S ]
+ rm -f /tmp/tmp.BeDjDn7X6S


More information about the Pkg-mailman-hackers mailing list