build/plugins: provide local override here as well

This commit is contained in:
Franco Fichtner 2021-02-02 09:35:22 +01:00
parent 808649f0ed
commit 679f0cc68e
2 changed files with 8 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/config/*/build.conf.local
/config/*/plugins.conf.local
/config/*/repo.key
/config/*/repo.pub

View File

@ -31,9 +31,15 @@ SELF=plugins
. ./common.sh
PLUGINS_CONF=${CONFIGDIR}/plugins.conf
if [ -f ${PLUGINS_CONF}.local ]; then
PLUGINS_CONF="${PLUGINS_CONF} ${PLUGINS_CONF}.local"
fi
if [ -z "${PLUGINS_LIST}" ]; then
PLUGINS_LIST=$(
cat ${CONFIGDIR}/plugins.conf | while read PLUGIN_ORIGIN PLUGIN_IGNORE; do
cat ${PLUGINS_CONF} | while read PLUGIN_ORIGIN PLUGIN_IGNORE; do
if [ "$(echo ${PLUGIN_ORIGIN} | colrm 2)" = "#" ]; then
continue
fi