run.sh: add logging
This commit is contained in:
parent
3dcf8305bb
commit
f59a0784e4
1 changed files with 5 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue