From f523cfc68b6414221a133e60faaf298cb0c6f769 Mon Sep 17 00:00:00 2001 From: Matthew Orres Date: Wed, 1 Mar 2023 22:56:16 -0500 Subject: [PATCH] Add install for ADDITIONAL_PKGS env var to start script --- run/nobody/start.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run/nobody/start.sh b/run/nobody/start.sh index e0d193a..27c0d72 100644 --- a/run/nobody/start.sh +++ b/run/nobody/start.sh @@ -10,5 +10,11 @@ export JENKINS_WEBROOT=--webroot=/var/cache/jenkins export JENKINS_PORT=--httpPort=8090 export JENKINS_COMMAND_LINE="${JAVA} ${JAVA_ARGS} ${JAVA_OPTS} -jar ${JENKINS_WAR} ${JENKINS_WEBROOT} ${JENKINS_PORT} ${JENKINS_OPTS}" +# install additional packages using pacman if specified +if [[ ! -z "${ADDITIONAL_PKGS}" ]]; then + echo "[info] Installing additional packages: ${ADDITIONAL_PKGS}" + pacman -S --needed $ADDITIONAL_PKGS --noconfirm +fi + # run jenkins /bin/sh -c 'eval "${JENKINS_COMMAND_LINE}"'