mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 06:34:16 +00:00
fix /browsers/* does not exist chown error
This commit is contained in:
parent
f250762c98
commit
1ce228e9bb
1 changed files with 2 additions and 0 deletions
|
@ -74,8 +74,10 @@ chown $PUID:$PGID "$DATA_DIR"/*
|
|||
PLAYWRIGHT_BROWSERS_PATH="${PLAYWRIGHT_BROWSERS_PATH:-/browsers}"
|
||||
mkdir -p "$PLAYWRIGHT_BROWSERS_PATH"
|
||||
chown $PUID:$PGID "$PLAYWRIGHT_BROWSERS_PATH"
|
||||
touch "$PLAYWRIGHT_BROWSERS_PATH"/.permissions_test_safe_to_delete
|
||||
chown $PUID:$PGID "$PLAYWRIGHT_BROWSERS_PATH"/*
|
||||
|
||||
|
||||
# (this check is written in blood, QEMU silently breaks things in ways that are not obvious)
|
||||
export IN_QEMU="$(pmap 1 | grep qemu | wc -l | grep -E '^0$' >/dev/null && echo 'False' || echo 'True')"
|
||||
if [[ "$IN_QEMU" == 'True' ]]; then
|
||||
|
|
Loading…
Reference in a new issue