- Export no longer crashes the server on an unreadable photo (skips it) - Login limits per username as well as per client; X-Forwarded-For only trusted from local/private proxies; constant-time unknown-user path - Share links: internal fields always removed; values (incl. research notes) and notes/locations per link; filters, sort, search and CSV cannot reveal hidden fields; questions and stats details hidden - Password reset/change signs other browsers out - Comparables keep only http(s) links; CSV cells cannot start a formula - Phone sign-in redirect stays on this site; browser security headers - Items belong to accounts (not display names); unique display names - Uploads go to disk, retried uploads are stored once (app 1.4.1) - Daily database snapshots, expired-token cleanup, non-root container
11 lines
404 B
Bash
Executable File
11 lines
404 B
Bash
Executable File
#!/bin/sh
|
|
# Starts IndexiPro as the unprivileged "node" user. When the container starts as root (the
|
|
# default), it first makes sure the data folder belongs to that user, then drops privileges.
|
|
set -e
|
|
if [ "$(id -u)" = "0" ]; then
|
|
mkdir -p "$DATA_DIR"
|
|
[ "$(stat -c %U "$DATA_DIR")" = "node" ] || chown -R node:node "$DATA_DIR"
|
|
exec setpriv --reuid=node --regid=node --init-groups "$@"
|
|
fi
|
|
exec "$@"
|