mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 04:03:06 +00:00
chown TMP_DIR and LIB_DIR recursively inside docker_entrypoint to handle custom PUID
This commit is contained in:
parent
082930b2ef
commit
63bf902f35
2 changed files with 9 additions and 6 deletions
|
@ -110,12 +110,15 @@ if [[ -d "$PLAYWRIGHT_BROWSERS_PATH/.links" ]]; then
|
||||||
chown -h $PUID:$PGID "$PLAYWRIGHT_BROWSERS_PATH"/.links/*
|
chown -h $PUID:$PGID "$PLAYWRIGHT_BROWSERS_PATH"/.links/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# also create and chown tmp dir and lib dirs
|
# also create and chown tmp dir and lib dir (and their default equivalents inside data/)
|
||||||
mkdir -p "$DATA_DIR"/lib/bin
|
# mkdir -p "$DATA_DIR"/lib/bin
|
||||||
chown $PUID:$PGID "$DATA_DIR"/lib "$DATA_DIR"/lib/*
|
# chown $PUID:$PGID "$DATA_DIR"/lib "$DATA_DIR"/lib/*
|
||||||
|
chown $PUID:$PGID "$LIB_DIR" 2>/dev/null
|
||||||
chown $PUID:$PGID "$LIB_DIR/*" 2>/dev/null &
|
chown $PUID:$PGID "$LIB_DIR/*" 2>/dev/null &
|
||||||
mkdir -p "$DATA_DIR"/tmp/workers
|
|
||||||
chown $PUID:$PGID "$DATA_DIR"/tmp "$DATA_DIR"/tmp/*
|
# mkdir -p "$DATA_DIR"/tmp/workers
|
||||||
|
# chown $PUID:$PGID "$DATA_DIR"/tmp "$DATA_DIR"/tmp/*
|
||||||
|
chown $PUID:$PGID "$TMP_DIR" 2>/dev/null
|
||||||
chown $PUID:$PGID "$TMP_DIR/*" 2>/dev/null &
|
chown $PUID:$PGID "$TMP_DIR/*" 2>/dev/null &
|
||||||
|
|
||||||
# (this check is written in blood in 2023, QEMU silently breaks things in ways that are not obvious)
|
# (this check is written in blood in 2023, QEMU silently breaks things in ways that are not obvious)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "archivebox"
|
name = "archivebox"
|
||||||
version = "0.8.5rc50"
|
version = "0.8.5rc51"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
description = "Self-hosted internet archiving solution."
|
description = "Self-hosted internet archiving solution."
|
||||||
authors = [{name = "Nick Sweeting", email = "pyproject.toml@archivebox.io"}]
|
authors = [{name = "Nick Sweeting", email = "pyproject.toml@archivebox.io"}]
|
||||||
|
|
Loading…
Reference in a new issue