mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Switch from gosu to setpriv
Preserves supplementary groups if `PHOTOPRISM_GID` is set. Removes gosu installation as it is no longer needed.
This commit is contained in:
committed by
Michael Mayer
parent
f5a8c5a45d
commit
7ab3669fdb
6
scripts/dist/install-go-tools.sh
vendored
6
scripts/dist/install-go-tools.sh
vendored
@@ -37,12 +37,6 @@ set -e
|
||||
|
||||
mkdir -p "$GOPATH/src"
|
||||
|
||||
# Install gosu in "/usr/local/sbin".
|
||||
echo "Installing gosu in /usr/local/sbin..."
|
||||
GOBIN="/usr/local/sbin" go install github.com/tianon/gosu@latest
|
||||
chown root:root /usr/local/sbin/gosu
|
||||
chmod 755 /usr/local/sbin/gosu
|
||||
|
||||
# Install remaining tools in "/usr/local/bin".
|
||||
case $DESTARCH in
|
||||
arm | ARM | aarch | armv7l | armhf)
|
||||
|
||||
Reference in New Issue
Block a user