mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04: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}"
|
PLAYWRIGHT_BROWSERS_PATH="${PLAYWRIGHT_BROWSERS_PATH:-/browsers}"
|
||||||
mkdir -p "$PLAYWRIGHT_BROWSERS_PATH"
|
mkdir -p "$PLAYWRIGHT_BROWSERS_PATH"
|
||||||
chown $PUID:$PGID "$PLAYWRIGHT_BROWSERS_PATH"
|
chown $PUID:$PGID "$PLAYWRIGHT_BROWSERS_PATH"
|
||||||
|
touch "$PLAYWRIGHT_BROWSERS_PATH"/.permissions_test_safe_to_delete
|
||||||
chown $PUID:$PGID "$PLAYWRIGHT_BROWSERS_PATH"/*
|
chown $PUID:$PGID "$PLAYWRIGHT_BROWSERS_PATH"/*
|
||||||
|
|
||||||
|
|
||||||
# (this check is written in blood, QEMU silently breaks things in ways that are not obvious)
|
# (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')"
|
export IN_QEMU="$(pmap 1 | grep qemu | wc -l | grep -E '^0$' >/dev/null && echo 'False' || echo 'True')"
|
||||||
if [[ "$IN_QEMU" == 'True' ]]; then
|
if [[ "$IN_QEMU" == 'True' ]]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue