1
0
mirror of https://github.com/pirate/ArchiveBox.git synced 2025-08-29 01:00:11 +02:00

try to ensure tmp is writable by archivebox user

This commit is contained in:
Nick Sweeting
2024-10-05 04:17:58 -07:00
parent 05fb607df2
commit 7a9460f45b
2 changed files with 6 additions and 1 deletions

View File

@@ -110,6 +110,10 @@ if [[ -d "$PLAYWRIGHT_BROWSERS_PATH/.links" ]]; then
chown -h $PUID:$PGID "$PLAYWRIGHT_BROWSERS_PATH"/.links/*
fi
# also chown tmp dir
mkdir -p /tmp/archivebox
chown $PUID:$PGID /tmp
chown $PUID:$PGID /tmp/archivebox
# (this check is written in blood in 2023, QEMU silently breaks things in ways that are not obvious)
export IN_QEMU="$(pmap 1 | grep qemu >/dev/null && echo 'True' || echo 'False')"