mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-12 22:25:44 -04: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/*
|
||||
fi
|
||||
|
||||
# also create and chown tmp dir and lib dirs
|
||||
mkdir -p "$DATA_DIR"/lib/bin
|
||||
chown $PUID:$PGID "$DATA_DIR"/lib "$DATA_DIR"/lib/*
|
||||
# also create and chown tmp dir and lib dir (and their default equivalents inside data/)
|
||||
# mkdir -p "$DATA_DIR"/lib/bin
|
||||
# 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 &
|
||||
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 &
|
||||
|
||||
# (this check is written in blood in 2023, QEMU silently breaks things in ways that are not obvious)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue