aurweb/docker/mariadb-init-entrypoint.sh
Kevin Morris 5b350bc361
change(docker): use aurweb-config to update AUR_CONFIG
Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-11-27 22:49:48 -08:00

13 lines
289 B
Bash
Executable file

#!/bin/bash
set -eou pipefail
# Setup a config for our mysql db.
cp -vf conf/config.dev conf/config
sed -i "s;YOUR_AUR_ROOT;$(pwd);g" conf/config
aurweb-config set database user 'aur'
aurweb-config set database password 'aur'
python -m aurweb.initdb 2>/dev/null || /bin/true
exec "$@"