From f59a0784e450cee36e84a411dbb57c13fe95d286 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 4 Feb 2021 23:06:41 +0000 Subject: [PATCH] run.sh: add logging --- images/gossa/run.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/images/gossa/run.sh b/images/gossa/run.sh index e9b215b..df1813a 100755 --- a/images/gossa/run.sh +++ b/images/gossa/run.sh @@ -13,6 +13,11 @@ if [[ -z "${NOMAD_PORT_GOSSA}" ]]; then exit 1; fi +echo "[core] Starting"; +echo "[core] Running as uid = ${GOSSA_UID} gid = ${GOSSA_GID} port = ${NOMAD_PORT_GOSSA}"; + cd "/mnt" || { echo "Failed to cd into /mnt"; exit 1; }; setpriv --inh-caps=-all --reuid "${GOSSA_UID}" --init-groups --regid "${GOSSA_GID}" /usr/local/bin/gossa -p "${NOMAD_PORT_GOSSA}" /mnt; + +echo "[core] Ending";