mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-13 01:54:10 +02:00
improve config loading of TMP_DIR, LIB_DIR, move to separate files
This commit is contained in:
@@ -110,12 +110,11 @@ if [[ -d "$PLAYWRIGHT_BROWSERS_PATH/.links" ]]; then
|
||||
chown -h $PUID:$PGID "$PLAYWRIGHT_BROWSERS_PATH"/.links/*
|
||||
fi
|
||||
|
||||
# also chown tmp dir
|
||||
mkdir -p /tmp/archivebox
|
||||
chmod 777 /tmp
|
||||
chown $PUID:$PGID /tmp/archivebox
|
||||
mkdir -p /app/lib
|
||||
chown $PUID:$PGID /app/lib /app/lib/*
|
||||
# also chown tmp dir and lib dir
|
||||
mkdir -p "$SYSTEM_TMP_DIR"
|
||||
chown $PUID:$PGID "$SYSTEM_TMP_DIR"
|
||||
mkdir -p "$SYSTEM_LIB_DIR"
|
||||
chown $PUID:$PGID "$SYSTEM_LIB_DIR" "$SYSTEM_LIB_DIR"/*
|
||||
|
||||
# (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')"
|
||||
|
Reference in New Issue
Block a user