Skip to content

Commit

Permalink
chown /var/spool/cron/crontabs in docker entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pirate committed Jan 28, 2024
1 parent 9861a4f commit 17213ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/docker_entrypoint.sh
Expand Up @@ -89,7 +89,8 @@ if ! chown $PUID:$PGID "$DATA_DIR"/* > /dev/null 2>&1; then
find "$DATA_DIR" -type d -not -path "$DATA_DIR/archive*" -exec chown $PUID:$PGID {} \; > /dev/null 2>&1
find "$DATA_DIR" -type f -not -path "$DATA_DIR/archive/*" -exec chown $PUID:$PGID {} \; > /dev/null 2>&1
fi

mkdir -p /var/spool/cron/crontabs
chown -R $PUID:$PGID /var/spool/cron/crontabs > /dev/null 2>&1 &

# also chown BROWSERS_DIR because otherwise 'archivebox setup' wont be able to 'playwright install chromium' at runtime
export PLAYWRIGHT_BROWSERS_PATH="${PLAYWRIGHT_BROWSERS_PATH:-/browsers}"
Expand Down

0 comments on commit 17213ea

Please sign in to comment.