Skip to content

Commit

Permalink
Merge pull request #40 from gabriel-samfira/source-env-when-jit-is-used
Browse files Browse the repository at this point in the history
Source env.sh when JIT config is used
  • Loading branch information
gabriel-samfira authored Nov 14, 2024
2 parents 5b7633d + 16495ba commit 15830ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cloudconfig/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ fi
AGENT_ID=""
{{- if .UseJITConfig }}
if [ -f "$RUN_HOME/env.sh" ];then
pushd $RUN_HOME
source env.sh
popd
fi
sudo systemctl start $SVC_NAME || fail "failed to start service"
{{- else}}
sendStatus "starting service"
Expand Down

0 comments on commit 15830ab

Please sign in to comment.