Update photoprism-install.sh

This commit is contained in:
tteckster 2022-05-07 11:36:44 -04:00 committed by GitHub
parent 8840fabc1f
commit 28a714a4f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 7 deletions

View File

@ -100,8 +100,18 @@ cp /root/go/bin/* /usr/local/go/bin/
cp /root/go/bin/* /usr/local/bin/ cp /root/go/bin/* /usr/local/bin/
msg_ok "Installed Golang" msg_ok "Installed Golang"
read -p "Check For Advanced Vector Extensions? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
check=yes
else
check=no
fi
msg_info "Installing Tensorflow" msg_info "Installing Tensorflow"
if [[ "$AVX" == "avx2" ]]; then if [ "$check" == "yes" ]; then
if [[ "$AVX" == "avx2" ]]; then
wget https://dl.photoprism.org/tensorflow/linux/libtensorflow-linux-avx2-1.15.2.tar.gz &>/dev/null 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 tar -C /usr/local -xzf libtensorflow-linux-avx2-1.15.2.tar.gz &>/dev/null
elif [[ "$AVX" == "avx" ]]; then elif [[ "$AVX" == "avx" ]]; then
@ -110,6 +120,11 @@ if [[ "$AVX" == "avx2" ]]; then
elif [[ "$AVX" == " " ]]; then elif [[ "$AVX" == " " ]]; then
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
fi
fi
if [ "$check" == "no" ]; then
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
fi fi
ldconfig &>/dev/null ldconfig &>/dev/null
msg_ok "Installed Tensorflow" msg_ok "Installed Tensorflow"