mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-17 20:01:44 +02:00
Change env vars to linuxserver.io convention
This commit is contained in:
@@ -4,11 +4,11 @@ DATA_DIR="${DATA_DIR:-/data}"
|
|||||||
ARCHIVEBOX_USER="${ARCHIVEBOX_USER:-archivebox}"
|
ARCHIVEBOX_USER="${ARCHIVEBOX_USER:-archivebox}"
|
||||||
|
|
||||||
# Set the archivebox user UID & GID
|
# Set the archivebox user UID & GID
|
||||||
if [[ -n "$ARCHIVEBOX_UID" && "$ARCHIVEBOX_UID" != 0 ]]; then
|
if [[ -n "$PUID" && "$PUID" != 0 ]]; then
|
||||||
usermod -u "$ARCHIVEBOX_UID" "$ARCHIVEBOX_USER" > /dev/null 2>&1
|
usermod -u "$PUID" "$ARCHIVEBOX_USER" > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
if [[ -n "$ARCHIVEBOX_GID" && "$ARCHIVEBOX_GID" != 0 ]]; then
|
if [[ -n "$PGID" && "$PGID" != 0 ]]; then
|
||||||
groupmod -g "$ARCHIVEBOX_GID" "$ARCHIVEBOX_USER" > /dev/null 2>&1
|
groupmod -g "$PGID" "$ARCHIVEBOX_USER" > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set the permissions of the data dir to match the archivebox user
|
# Set the permissions of the data dir to match the archivebox user
|
||||||
|
Reference in New Issue
Block a user