mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-26 19:47:05 +02:00
pool: update to v0.3.4, start only if ready (#1918)
This commit is contained in:
@@ -360,6 +360,7 @@ if [ "${pool}" != "${choice}" ]; then
|
|||||||
anychange=1
|
anychange=1
|
||||||
sudo -u admin /home/admin/config.scripts/bonus.pool.sh ${choice}
|
sudo -u admin /home/admin/config.scripts/bonus.pool.sh ${choice}
|
||||||
if [ "${choice}" = "on" ]; then
|
if [ "${choice}" = "on" ]; then
|
||||||
|
sudo systemctl start poold
|
||||||
sudo -u admin /home/admin/config.scripts/bonus.pool.sh menu
|
sudo -u admin /home/admin/config.scripts/bonus.pool.sh menu
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# https://github.com/lightninglabs/pool/releases/
|
# https://github.com/lightninglabs/pool/releases/
|
||||||
pinnedVersion="v0.3.3-alpha"
|
pinnedVersion="v0.3.4-alpha"
|
||||||
|
|
||||||
# command info
|
# command info
|
||||||
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
||||||
@@ -125,9 +125,13 @@ WantedBy=multi-user.target
|
|||||||
echo "the poold.service already installed."
|
echo "the poold.service already installed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# start service
|
source /home/admin/raspiblitz.info
|
||||||
sudo systemctl start poold.service
|
if [ "${state}" == "ready" ]; then
|
||||||
|
echo "# OK - the poold.service is enabled, system is on ready so starting service"
|
||||||
|
sudo systemctl start poold
|
||||||
|
else
|
||||||
|
echo "# OK - the poold.service is enabled, to start manually use: sudo systemctl start poold"
|
||||||
|
fi
|
||||||
# setting value in raspi blitz config
|
# setting value in raspi blitz config
|
||||||
sudo sed -i "s/^pool=.*/pool=on/g" /mnt/hdd/raspiblitz.conf
|
sudo sed -i "s/^pool=.*/pool=on/g" /mnt/hdd/raspiblitz.conf
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user