mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-24 22:11:56 +00:00
Update photoprism-install.sh
This commit is contained in:
parent
dc08c15e8d
commit
eea7900b13
@ -1,5 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o errtrace
|
set -o errtrace
|
||||||
set -o nounset
|
set -o nounset
|
||||||
@ -81,9 +80,20 @@ ln -s /usr/local/go/bin/go /usr/local/bin/go &>/dev/null
|
|||||||
echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
echo -en "${GN} Installing Tensorflow... "
|
echo -en "${GN} Installing Tensorflow... "
|
||||||
|
AVX=$(grep -o -m1 'avx[^ ]*' /proc/cpuinfo)
|
||||||
|
if [[ "$AVX" == "avx2" ]]; then
|
||||||
|
wget https://dl.photoprism.org/tensorflow/linux/libtensorflow-linux-avx2-1.15.2.tar.gz &>/dev/null
|
||||||
|
tar -C /usr/local -xzf libtensorflow-linux-avx2-1.15.2.tar.gz &>/dev/null
|
||||||
|
ldconfig &>/dev/null
|
||||||
|
elif [[ "$AVX" == "avx" ]]; then
|
||||||
|
wget https://dl.photoprism.org/tensorflow/linux/libtensorflow-linux-avx-1.15.2.tar.gz &>/dev/null
|
||||||
|
tar -C /usr/local -xzf libtensorflow-linux-avx-1.15.2.tar.gz &>/dev/null
|
||||||
|
ldconfig &>/dev/null
|
||||||
|
else
|
||||||
wget https://dl.photoprism.org/tensorflow/linux/libtensorflow-linux-cpu-1.15.2.tar.gz &>/dev/null
|
wget https://dl.photoprism.org/tensorflow/linux/libtensorflow-linux-cpu-1.15.2.tar.gz &>/dev/null
|
||||||
tar -C /usr/local -xzf libtensorflow-linux-cpu-1.15.2.tar.gz &>/dev/null
|
tar -C /usr/local -xzf libtensorflow-linux-cpu-1.15.2.tar.gz &>/dev/null
|
||||||
ldconfig &>/dev/null
|
ldconfig &>/dev/null
|
||||||
|
fi
|
||||||
echo -e "${CM}${CL} \r"
|
echo -e "${CM}${CL} \r"
|
||||||
|
|
||||||
echo -en "${GN} Cloning PhotoPrism... "
|
echo -en "${GN} Cloning PhotoPrism... "
|
||||||
|
Loading…
Reference in New Issue
Block a user