浏览代码

Update photoprism-v5-install.sh

fix cpu only suffix
tteckster 2 年之前
父节点
当前提交
565e4349ff
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      install/photoprism-v5-install.sh

+ 1 - 1
install/photoprism-v5-install.sh

@@ -133,7 +133,7 @@ if grep -q avx2 /proc/cpuinfo; then
 elif grep -q avx /proc/cpuinfo; then
   suffix="avx-"
 else
-  suffix=""
+  suffix="1"
 fi
 version=$(curl -s https://dl.photoprism.org/tensorflow/amd64/ | grep -o "libtensorflow-amd64-$suffix.*\\.tar.gz" | head -n 1)
 wget -q https://dl.photoprism.org/tensorflow/amd64/$version