fix(docker): remove sqlite scripts

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

View file

@ -1,7 +0,0 @@
#!/bin/bash
# Run an sqlite test. This script really just prepares sqlite
# tests by deleting any existing databases so the test can
# initialize cleanly.
DB_NAME="$(grep 'name =' conf/config.sqlite | sed -r 's/^name = (.+)$/\1/')"
rm -vf $DB_NAME
exec "$@"

View file

@ -1,16 +0,0 @@
#!/bin/bash
set -eou pipefail
DB_BACKEND="sqlite"
DB_NAME="aurweb.sqlite3"
# Create an SQLite config from the default dev config.
cp -vf conf/config.dev conf/config.sqlite
cp -vf conf/config.defaults conf/config.sqlite.defaults
# Modify it for SQLite.
sed -i "s;YOUR_AUR_ROOT;$(pwd);g" conf/config.sqlite
sed -ri "s/^(backend) = .+/\1 = ${DB_BACKEND}/" conf/config.sqlite
sed -ri "s/^(name) = .+/\1 = ${DB_NAME}/" conf/config.sqlite
exec "$@"