feat: Switch to postgres

WIP!

Signed-off-by: moson <moson@archlinux.org>
This commit is contained in:
moson 2023-10-26 18:45:35 +02:00
parent 40c1d3e8ee
commit e36b405689
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
52 changed files with 395 additions and 463 deletions

View 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 "$@"