16b9fd82f0
* update for making it work with systemd * take DB_BACKEND from file name; reduce duplicated code; configure db_type=sqlite * define PACKAGE_TESTING Co-authored-by: sabban <15465465+sabban@users.noreply.github.com> Co-authored-by: mmetc <92726601+mmetc@users.noreply.github.com>
16 lines
358 B
Bash
Executable file
16 lines
358 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
#shellcheck disable=SC1007
|
|
THIS_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
|
cd "${THIS_DIR}"
|
|
#shellcheck disable=SC1090
|
|
. ./.environment.sh
|
|
|
|
backend_script="./lib/config/config-${CONFIG_BACKEND}"
|
|
|
|
if [ ! -x "$backend_script" ]; then
|
|
echo "unknown config backend '$CONFIG_BACKEND'" >&2
|
|
exit 1
|
|
fi
|
|
|
|
exec "$backend_script" "$@"
|