change(docker): use aurweb-config to update AUR_CONFIG

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-27 18:46:42 -08:00
parent 0726a08677
commit 5b350bc361
No known key found for this signature in database
GPG key ID: F7E46DED420788F3
4 changed files with 37 additions and 37 deletions

View file

@ -4,8 +4,9 @@ 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
sed -ri "s/^;?(user) = .*$/\1 = aur/g" conf/config
sed -ri "s/^;?(password) = .*$/\1 = aur/g" conf/config
aurweb-config set database user 'aur'
aurweb-config set database password 'aur'
python -m aurweb.initdb 2>/dev/null || /bin/true