mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-02-12 17:22:50 +00:00
Merge pull request #57 from KeygraphHQ/fix/audit-logs-permission-issue
fix: create audit-logs directory before container startup
This commit is contained in:
7
shannon
7
shannon
@@ -144,11 +144,16 @@ cmd_start() {
|
||||
# Handle custom OUTPUT directory
|
||||
# Export OUTPUT_DIR for docker-compose volume mount BEFORE starting containers
|
||||
if [ -n "$OUTPUT" ]; then
|
||||
# Create output directory if it doesn't exist
|
||||
# Create output directory with write permissions for container user (UID 1001)
|
||||
mkdir -p "$OUTPUT"
|
||||
chmod 777 "$OUTPUT"
|
||||
export OUTPUT_DIR="$OUTPUT"
|
||||
fi
|
||||
|
||||
# Ensure audit-logs directory exists with write permissions for container user (UID 1001)
|
||||
mkdir -p ./audit-logs
|
||||
chmod 777 ./audit-logs
|
||||
|
||||
# Ensure containers are running (starts them if needed)
|
||||
ensure_containers
|
||||
|
||||
|
||||
Reference in New Issue
Block a user