Parcourir la source

update gerbera

wareck il y a 1 an
Parent
commit
5199ce78e9
2 fichiers modifiés avec 22 ajouts et 21 suppressions
  1. 16 16
      options/build_gerbera.sh
  2. 6 5
      options/chia.sh

+ 16 - 16
options/build_gerbera.sh

@@ -63,9 +63,9 @@ echo -e "$(tput setaf 10)\nInstall cmake:$(tput sgr0)"
 if [ -x "$(command -v cmake)" ];then flag=1; else flag=0;fi
 case $flag in
 0)
-	wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/cmake_3.25.2-1_amd64.deb
-	sudo dpkg -i cmake_3.25.2-1_amd64.deb
-	rm cmake_3.25.2-1_amd64.deb
+	wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/cmake_3.26.2-1_amd64.deb
+	sudo dpkg -i cmake_3.26.2-1_amd64.deb
+	rm cmake_3.26.2-1_amd64.deb
 	;;
 1)
 	cmake_v="$(cmake --version | grep "version" | awk '{print $3}')"
@@ -75,9 +75,9 @@ case $flag in
 	then
 	echo -e "cmake need update=>"
 	sudo apt-get -qq remove --purge cmake -y
-	wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/cmake_3.25.2-1_amd64.deb
-	sudo dpkg -i cmake_3.25.2-1_amd64.deb
-	rm cmake_3.25.2-1_amd64.deb
+	wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/cmake_3.26.2-1_amd64.deb
+	sudo dpkg -i cmake_3.26.2-1_amd64.deb
+	rm cmake_3.26.2-1_amd64.deb
 	else
 	echo -e "cmake version ok."
 	sleep 2
@@ -92,15 +92,15 @@ echo -e "$(tput setaf 10)\nInstall cmake:$(tput sgr0)"
 if [ -x "$(command -v cmake)" ];then flag=1; else flag=0;fi
 case $flag in
 0)
-	wget -c https://github.com/Kitware/CMake/releases/download/v3.25.2/cmake-3.25.2.tar.gz
-	tar xvfz cmake-3.25.2.tar.gz
-	cd cmake-3.25.2
+	wget -c https://github.com/Kitware/CMake/releases/download/v3.25.2/cmake-3.26.2.tar.gz
+	tar xvfz cmake-3.26.2.tar.gz
+	cd cmake-3.26.2
 	./bootstrap
 	make
 	sudo make install
 	cd ..
-	rm -r -f cmake-3.25.2
-	rm cmake-3.25.2.tar.gz
+	rm -r -f cmake-3.26.2
+	rm cmake-3.26.2.tar.gz
         ;;
 1)
         cmake_v="$(cmake --version | grep "version" | awk '{print $3}')"
@@ -109,15 +109,15 @@ case $flag in
         if ! [ $(version $cmake_v) -ge $(version "3.18") ]
         then
         echo -e "cmake need update =>:"
-	wget -c https://github.com/Kitware/CMake/releases/download/v3.25.2/cmake-3.25.2.tar.gz
-        tar xvfz cmake-3.25.2.tar.gz
-        cd cmake-3.25.2
+	wget -c https://github.com/Kitware/CMake/releases/download/v3.26.2/cmake-3.26.2.tar.gz
+        tar xvfz cmake-3.26.2.tar.gz
+        cd cmake-3.26.2
         ./bootstrap
         make
         sudo make install
         cd ..
-        rm -r -f cmake-3.25.2
-        rm cmake-3.25.2.tar.gz
+        rm -r -f cmake-3.26.2
+        rm cmake-3.26.2.tar.gz
         else
         echo -e "cmake version ok."
         sleep 2

+ 6 - 5
options/chia.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 set -e
-Gui=No #can be Yes No or Only
+Gui=Yes #can be Yes No or Only
 Service=No
 Version=3.0
 
@@ -71,14 +71,14 @@ echo -e "\e[97mDone.\e[0m"
 if ! [ $Gui = "Only" ]
 then
 echo -e "$(tput setaf 2)\nDownload pack:$(tput sgr0)"
-wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/chia-miner.tar.xz
-mv chia-miner.tar.xz /home/wareck/Build_Cube/pack/chia-miner.tar.xz
+wget -c -q --show-progress http://folivier.homelinux.org/cube/pack/chia-miner.tar.xz -O /home/wareck/Build_Cube/pack/chia-miner.tar.xz
 
 echo -e "$(tput setaf 2)\nBuild Chia-Miner:$(tput sgr0)"
 cp ../pack/chia-miner.tar.xz /home/wareck/miners
 cd /home/wareck/miners
 tar xvfJ chia-miner.tar.xz
 rm chia-miner.tar.xz
+
 if [ $Service = "Yes" ]
 then
 cat <<'EOF'>> chia-miner.sh
@@ -193,12 +193,13 @@ sudo cp ~/chia-gigahorse/plot-sink/linux/x86_64/* /usr/local/bin/
 sudo cp ~/chia-gigahorse/cpu-plotter/linux/x86_64/* /usr/local/bin/
 cd ~
 if [ -f distrib_chia.sh ];then rm distrib_chia.sh;fi
+if [ -f /usr/local/bin/distrib_chia.sh ];then rm /usr/local/bin/distrib_chia.sh;fi
 cat <<'EOF'>> distrib_chia.sh
 #!/bin/bash
-chia_plot_sink -p 1447 /Chia/Chia1/Plots-nft/ /Chia/Chia2/Plots-nft/ /Partage/Plots-nft/ /Cloud/Plots-nft/ /Store/Cloud/Plots-nft/
+chia_plot_sink -p 1447 /Chia/Chia1/Plots-nft/ /Chia/Chia2/Plots-nft/ /Partage/Plots-nft/ /Cloud/Plots-nft/ /Store/Plots-nft/
 EOF
 chmod +x distrib_chia.sh
-sudo cp distrib_chia.sh /usr/local/bin/
+sudo mv distrib_chia.sh /usr/local/bin/
 
 cat <<'EOF'>> cpu_chiagh_plot.sh
 #!/bin/bash