Merge pull request 'fix: bug: agents entrypoint creates log dir as root, then gosu agent can't mkdir subdirs (#576)' (#613) from fix/issue-576 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
This commit is contained in:
commit
56a4700e16
1 changed files with 4 additions and 1 deletions
|
|
@ -18,7 +18,10 @@ set -euo pipefail
|
|||
|
||||
DISINTO_DIR="/home/agent/disinto"
|
||||
LOGFILE="/home/agent/data/agent-entrypoint.log"
|
||||
mkdir -p /home/agent/data/logs
|
||||
|
||||
# Create all expected log subdirectories and set ownership as root before dropping to agent.
|
||||
# This handles both fresh volumes and stale root-owned dirs from prior container runs.
|
||||
mkdir -p /home/agent/data/logs/{dev,action,review,supervisor,vault,site,metrics,gardener,planner,predictor,architect,dispatcher}
|
||||
chown -R agent:agent /home/agent/data
|
||||
|
||||
log() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue