Skip to content

Commit

Permalink
daemonbuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
afiniel committed Jan 28, 2025
1 parent b6e8027 commit c8806be
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion daemon_builder/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
################################################################################

if [ -z "${TAG}" ]; then
TAG=v2.3.6
TAG=v2.3.7
fi

clear
Expand Down
3 changes: 2 additions & 1 deletion daemon_builder/requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ hide_output sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 5
hide_output sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 60 --slave /usr/bin/g++ g++ /usr/bin/g++-10

hide_output sudo update-alternatives --config gcc
hide_output sudo apt update && sudo apt upgrade
hide_output sudo apt update
hide_output sudo apt upgrade -y

echo -e "$GREEN gcc & g++ Updated to version 10...$NC"

Expand Down
32 changes: 16 additions & 16 deletions daemon_builder/utils/source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1157,64 +1157,64 @@ else
echo
echo -e "$CYAN --------------------------------------------------------------------------------------- $NC"
echo
echo -e "$GREEN Coin-tx moving to => /usr/bin/$NC$YELLOW${coind} $NC"
echo -e "$GREEN Daemon moving to => /usr/bin/$NC$YELLOW${coind} $NC"

sudo cp $STORAGE_ROOT/daemon_builder/temp_coin_builds/${coindir}/src/${coind} /usr/bin
sudo cp -r $STORAGE_ROOT/daemon_builder/temp_coin_builds/${coindir}/src/${coind} /usr/bin
sudo strip /usr/bin/${coind}
coindmv=true

if [[ ("$ifcoincli" == "y" || "$ifcoincli" == "Y") ]]; then
echo -e "$GREEN Coin-tx moving to => /usr/bin/$NC$YELLOW${coincli} $NC"
echo -e "$GREEN CLI moving to => /usr/bin/$NC$YELLOW${coincli} $NC"

sudo cp $STORAGE_ROOT/daemon_builder/temp_coin_builds/${coindir}/src/${coincli} /usr/bin
sudo cp -r $STORAGE_ROOT/daemon_builder/temp_coin_builds/${coindir}/src/${coincli} /usr/bin
sudo strip /usr/bin/${coincli}
coinclimv=true
fi

if [[ ("$ifcointx" == "y" || "$ifcointx" == "Y") ]]; then
echo -e "$GREEN Coin-tx moving to => /usr/bin/$NC$YELLOW${cointx} $NC"
echo -e "$GREEN TX moving to => /usr/bin/$NC$YELLOW${cointx} $NC"

sudo cp $STORAGE_ROOT/daemon_builder/temp_coin_builds/${coindir}/src/${cointx} /usr/bin
sudo cp -r $STORAGE_ROOT/daemon_builder/temp_coin_builds/${coindir}/src/${cointx} /usr/bin
sudo strip /usr/bin/${cointx}
cointxmv=true
fi

if [[ ("$ifcoinutil" == "y" || "$ifcoinutil" == "Y") ]]; then
echo -e "$GREEN Coin-tx moving to => /usr/bin/$NC$YELLOW${coinutil} $NC"
echo -e "$GREEN UTIL moving to => /usr/bin/$NC$YELLOW${coinutil} $NC"

sudo cp $STORAGE_ROOT/daemon_builder/temp_coin_builds/${coindir}/src/${coinutil} /usr/bin
sudo cp -r $STORAGE_ROOT/daemon_builder/temp_coin_builds/${coindir}/src/${coinutil} /usr/bin
sudo strip /usr/bin/${coinutil}
coinutilmv=true
fi

if [[ ("$ifcoingtest" == "y" || "$ifcoingtest" == "Y") ]]; then
echo -e "$GREEN Coin-tx moving to => /usr/bin/$NC$YELLOW${coingtest} $NC"
echo -e "$GREEN GTEST moving to => /usr/bin/$NC$YELLOW${coingtest} $NC"

sudo cp $STORAGE_ROOT/daemon_builder/temp_coin_builds/${coindir}/src/${coingtest} /usr/bin
sudo cp -r $STORAGE_ROOT/daemon_builder/temp_coin_builds/${coindir}/src/${coingtest} /usr/bin
sudo strip /usr/bin/${coingtest}
coingtestmv=true
fi

if [[ ("$ifcointools" == "y" || "$ifcointools" == "Y") ]]; then
echo -e "$GREEN Coin-tx moving to => /usr/bin/$NC$YELLOW${cointools} $NC"
echo -e "$GREEN TOOLS moving to => /usr/bin/$NC$YELLOW${cointools} $NC"

sudo cp $STORAGE_ROOT/daemon_builder/temp_coin_builds/${coindir}/src/${cointools} /usr/bin
sudo cp -r $STORAGE_ROOT/daemon_builder/temp_coin_builds/${coindir}/src/${cointools} /usr/bin
sudo strip /usr/bin/${cointools}
cointoolsmv=true
fi

if [[ ("$ifcoinhash" == "y" || "$ifcoinhash" == "Y") ]]; then
echo -e "$GREEN Coin-hash moving to => /usr/bin/$NC$YELLOW${coinhash} $NC"
echo -e "$GREEN HASH moving to => /usr/bin/$NC$YELLOW${coinhash} $NC"

sudo cp $STORAGE_ROOT/daemon_builder/temp_coin_builds/${coindir}/src/${coinhash} /usr/bin
sudo cp -r $STORAGE_ROOT/daemon_builder/temp_coin_builds/${coindir}/src/${coinhash} /usr/bin
sudo strip /usr/bin/${coinhash}
coinhashmv=true
fi

if [[ ("$ifcoinwallet" == "y" || "$ifcoinwallet" == "Y") ]]; then
echo -e "$GREEN Coin-wallet moving to => /usr/bin/$NC$YELLOW${coinwallet} $NC"
echo -e "$GREEN WALLET moving to => /usr/bin/$NC$YELLOW${coinwallet} $NC"

sudo cp $STORAGE_ROOT/daemon_builder/temp_coin_builds/${coindir}/src/${coinwallet} /usr/bin
sudo cp -r $STORAGE_ROOT/daemon_builder/temp_coin_builds/${coindir}/src/${coinwallet} /usr/bin
sudo strip /usr/bin/${coinwallet}
coinwalletmv=true
fi
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#########################################################

# Default version tag if not provided as environment variable
TAG=${TAG:-v2.3.6}
TAG=${TAG:-v2.3.7}

# File paths
YIIMPOOL_VERSION_FILE="/etc/yiimpoolversion.conf"
Expand Down
2 changes: 1 addition & 1 deletion ver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#########################################################

if [ -z "${TAG}" ]; then
TAG=v2.3.6
TAG=v2.3.7
fi

echo 'VERSION='"${TAG}"'' | sudo -E tee /etc/yiimpoolversion.conf >/dev/null 2>&1

0 comments on commit c8806be

Please sign in to comment.