1
0
Fork 0
mirror of synced 2024-06-29 03:20:58 +12:00

chown /var/spool/cron/crontabs in docker entrypoint

This commit is contained in:
Nick Sweeting 2024-01-28 02:55:28 -08:00
parent 9861a4fb48
commit 17213eaebf

View file

@ -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}"