mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
change(fastapi): setup live database in mariadb-init-entrypoint.sh
Centralize database setup there and remove all copying of config.dev from the entrypoint scripts (the Dockerfile now does it). Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
343a306bb8
commit
dbeebd3b01
6 changed files with 34 additions and 40 deletions
|
@ -5,16 +5,8 @@ for archive in packages pkgbase users packages-meta-v1.json packages-meta-ext-v1
|
|||
ln -vsf /var/lib/aurweb/archives/${archive}.gz /aurweb/web/html/${archive}.gz
|
||||
done
|
||||
|
||||
# Setup a config for our mysql db.
|
||||
cp -vf conf/config.dev conf/config
|
||||
sed -i "s;YOUR_AUR_ROOT;$(pwd);g" conf/config
|
||||
|
||||
# Setup database.
|
||||
aurweb-config set database user 'aur'
|
||||
aurweb-config set database password 'aur'
|
||||
aurweb-config set database host 'localhost'
|
||||
aurweb-config set database socket '/var/lib/mysqld/mysqld.sock'
|
||||
aurweb-config unset database port
|
||||
NO_INITDB=1 /docker/mariadb-init-entrypoint.sh
|
||||
|
||||
# Setup some other options.
|
||||
aurweb-config set options cache 'memcache'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue