mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(docker): remove sqlite scripts
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
f3efc18b50
commit
0726a08677
2 changed files with 0 additions and 23 deletions
|
@ -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 "$@"
|
|
@ -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 "$@"
|
Loading…
Add table
Reference in a new issue