mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 13:02:21 +02:00
electrs: fix rust installation #2548
This commit is contained in:
@@ -268,12 +268,10 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||||||
cd /home/electrs
|
cd /home/electrs
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "# Installing Rust"
|
echo "# Installing Rust for the electrs user"
|
||||||
echo
|
echo
|
||||||
# https://github.com/romanz/electrs/blob/master/doc/usage.md#build-dependencies
|
# https://github.com/romanz/electrs/blob/master/doc/usage.md#build-dependencies
|
||||||
#sudo -u electrs curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sudo -u electrs sh -s -- --default-toolchain 1.39.0 -y
|
sudo -u electrs curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sudo -u electrs sh -s -- --default-toolchain none -y
|
||||||
sudo apt update
|
|
||||||
sudo apt install -y cargo
|
|
||||||
sudo apt install -y clang cmake build-essential # for building 'rust-rocksdb'
|
sudo apt install -y clang cmake build-essential # for building 'rust-rocksdb'
|
||||||
|
|
||||||
echo
|
echo
|
||||||
@@ -283,7 +281,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||||||
cd /home/electrs/electrs || exit 1
|
cd /home/electrs/electrs || exit 1
|
||||||
sudo -u electrs git reset --hard $ELECTRSVERSION
|
sudo -u electrs git reset --hard $ELECTRSVERSION
|
||||||
|
|
||||||
sudo -u electrs cargo build --locked --release || exit 1
|
sudo -u electrs /home/electrs/.cargo/bin/cargo build --locked --release || exit 1
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "# The electrs database will be built in /mnt/hdd/app-storage/electrs/db. Takes ~18 hours and ~50Gb diskspace"
|
echo "# The electrs database will be built in /mnt/hdd/app-storage/electrs/db. Takes ~18 hours and ~50Gb diskspace"
|
||||||
|
Reference in New Issue
Block a user