mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Docker: Use common entrypoint.sh script for develop and prod env #2076
This commit is contained in:
2
scripts/dist/install-tensorflow.sh
vendored
2
scripts/dist/install-tensorflow.sh
vendored
@@ -16,7 +16,7 @@ fi
|
||||
|
||||
TMPDIR=${TMPDIR:-/tmp}
|
||||
|
||||
# abort if the user is not root
|
||||
# abort if not executed as root
|
||||
if [[ $(id -u) != "0" ]] && [[ $DESTDIR == "/usr" || $DESTDIR == "/usr/local" ]]; then
|
||||
echo "Error: Run ${0##*/} as root to install in a system directory!" 1>&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user