Entrypoint: Don't change owner of originals #1000
This commit is contained in:
parent
11a3aa6d00
commit
6e534fd039
1 changed files with 2 additions and 2 deletions
|
@ -7,11 +7,11 @@ fi
|
|||
if [[ ${UID} ]] && [[ ${GID} ]] && [[ ${UID} != "0" ]] && [[ $(id -u) = "0" ]]; then
|
||||
groupadd -f -g "${GID}" "${GID}"
|
||||
usermod -o -u "${UID}" -g "${GID}" photoprism
|
||||
chown -Rf photoprism /photoprism /var/lib/photoprism /tmp/photoprism
|
||||
chown -Rf photoprism /photoprism/assets /photoprism/storage /photoprism/import /var/lib/photoprism /tmp/photoprism
|
||||
gosu "${UID}:${GID}" "$@" &
|
||||
elif [[ ${UID} ]] && [[ ${UID} != "0" ]] && [[ $(id -u) = "0" ]]; then
|
||||
usermod -o -u "${UID}" photoprism
|
||||
chown -Rf photoprism /photoprism /var/lib/photoprism /tmp/photoprism
|
||||
chown -Rf photoprism /photoprism/assets /photoprism/storage /photoprism/import /var/lib/photoprism /tmp/photoprism
|
||||
gosu "${UID}" "$@" &
|
||||
else
|
||||
"$@" &
|
||||
|
|
Loading…
Reference in a new issue