diff --git a/docker/bin/admin.sh b/docker/bin/admin.sh index e5370af5..b0c69627 100755 --- a/docker/bin/admin.sh +++ b/docker/bin/admin.sh @@ -12,6 +12,17 @@ if [ ! -z "${APRSD_PLUGINS}" ]; then pip3 install --user $plugin done fi +if [ ! -z "${APRSD_EXTENSIONS}" ]; then + OLDIFS=$IFS + IFS=',' + echo "Installing APRSD extensions from pypi '$APRSD_EXTENSIONS'"; + for extension in ${APRSD_EXTENSIONS}; do + IFS=$OLDIFS + # call your procedure/other scripts here below + echo "Installing '$extension'" + pip3 install --user $extension + done +fi if [ -z "${LOG_LEVEL}" ] || [[ ! "${LOG_LEVEL}" =~ ^(CRITICAL|ERROR|WARNING|INFO)$ ]]; then LOG_LEVEL="DEBUG" diff --git a/docker/bin/listen.sh b/docker/bin/listen.sh index b1a0a04e..8e0aa9ec 100755 --- a/docker/bin/listen.sh +++ b/docker/bin/listen.sh @@ -12,6 +12,17 @@ if [ ! -z "${APRSD_PLUGINS}" ]; then pip3 install --user $plugin done fi +if [ ! -z "${APRSD_EXTENSIONS}" ]; then + OLDIFS=$IFS + IFS=',' + echo "Installing APRSD extensions from pypi '$APRSD_EXTENSIONS'"; + for extension in ${APRSD_EXTENSIONS}; do + IFS=$OLDIFS + # call your procedure/other scripts here below + echo "Installing '$extension'" + pip3 install --user $extension + done +fi if [ -z "${LOG_LEVEL}" ] || [[ ! "${LOG_LEVEL}" =~ ^(CRITICAL|ERROR|WARNING|INFO)$ ]]; then LOG_LEVEL="DEBUG" diff --git a/docker/bin/run.sh b/docker/bin/run.sh index 9a7ee1db..bd8adb38 100755 --- a/docker/bin/run.sh +++ b/docker/bin/run.sh @@ -13,6 +13,18 @@ if [ ! -z "${APRSD_PLUGINS}" ]; then done fi +if [ ! -z "${APRSD_EXTENSIONS}" ]; then + OLDIFS=$IFS + IFS=',' + echo "Installing APRSD extensions from pypi '$APRSD_EXTENSIONS'"; + for extension in ${APRSD_EXTENSIONS}; do + IFS=$OLDIFS + # call your procedure/other scripts here below + echo "Installing '$extension'" + pip3 install --user $extension + done +fi + if [ -z "${LOG_LEVEL}" ] || [[ ! "${LOG_LEVEL}" =~ ^(CRITICAL|ERROR|WARNING|INFO)$ ]]; then LOG_LEVEL="DEBUG" fi