mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
This variable allows users to override the logging.conf used for Python logging configuration. By default, this is set to logging.conf, which is a production config. LOG_CONFIG is treated relative to [options] aurwebdir. This patch allows us to specify the logging config as opposed to copying over logging.conf in our test docker and gitlab test scripts, as well as ease-of-testing as a developer. Signed-off-by: Kevin Morris <kevr@0cost.org>
19 lines
608 B
Bash
Executable file
19 lines
608 B
Bash
Executable file
#!/bin/bash
|
|
set -eou pipefail
|
|
|
|
# We use the root user for testing in Docker.
|
|
# The test user must be able to create databases and drop them.
|
|
aurweb-config set database user 'root'
|
|
aurweb-config set database host 'localhost'
|
|
aurweb-config set database socket '/var/run/mysqld/mysqld.sock'
|
|
|
|
# Remove possibly problematic configuration options.
|
|
# We depend on the database socket within Docker and
|
|
# being run as the root user.
|
|
aurweb-config unset database password
|
|
aurweb-config unset database port
|
|
|
|
# Setup notifications for testing.
|
|
aurweb-config set notifications sendmail "$(pwd)/util/sendmail"
|
|
|
|
exec "$@"
|