mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat: Switch to postgres
Migrate from MariaDB to PostgreSQL. Signed-off-by: moson <moson@archlinux.org>
This commit is contained in:
parent
eca8bbf515
commit
122df968dc
64 changed files with 1467 additions and 1441 deletions
15
docker/test-postgres-entrypoint.sh
Executable file
15
docker/test-postgres-entrypoint.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
set -eou pipefail
|
||||
|
||||
# Setup a config for our postgres db via socket connection.
|
||||
aurweb-config set database name 'aurweb'
|
||||
aurweb-config set database user 'aur'
|
||||
aurweb-config set database socket '/run/postgresql'
|
||||
aurweb-config unset database host
|
||||
aurweb-config unset database port
|
||||
aurweb-config unset database password
|
||||
|
||||
# Setup notifications for testing.
|
||||
aurweb-config set notifications sendmail "$(pwd)/util/sendmail"
|
||||
|
||||
exec "$@"
|
Loading…
Add table
Add a link
Reference in a new issue