mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
#2553 fix change of bitcoind service
This commit is contained in:
parent
4a5fac63c7
commit
68d0092b40
1 changed files with 7 additions and 6 deletions
|
@ -641,12 +641,6 @@ if [ ${isMounted} -eq 0 ]; then
|
|||
# mark provision process done
|
||||
sed -i "s/^message=.*/message='Provision Done'/g" ${infoFile}
|
||||
|
||||
# make sure for future starts that blockchain service gets started after bootstrap
|
||||
# so deamon reloas needed ... system will go into reboot after last loop
|
||||
echo "# Updating service ${network}d.service ..." >> $logFile
|
||||
sudo sed -i "s/^Wants=.*/Wants=bootstrap.service/g" /etc/systemd/system/${network}d.service
|
||||
sudo sed -i "s/^After=.*/After=bootstrap.service/g" /etc/systemd/system/${network}d.service
|
||||
|
||||
# wait until syncProgress is available (neeed for final dialogs)
|
||||
while [ "${syncProgress}" == "" ]
|
||||
do
|
||||
|
@ -671,6 +665,13 @@ if [ ${isMounted} -eq 0 ]; then
|
|||
sed -i "s/^message=.*/message='Setup Done'/g" ${infoFile}
|
||||
fi
|
||||
|
||||
# make sure for future starts that blockchain service gets started after bootstrap
|
||||
# so deamon reloas needed ... system will go into reboot after last loop
|
||||
# needs to be after wait loop because otherwise the "restart" on COPY OVER LAN will not work
|
||||
echo "# Updating service ${network}d.service ..." >> $logFile
|
||||
sudo sed -i "s/^Wants=.*/Wants=bootstrap.service/g" /etc/systemd/system/${network}d.service
|
||||
sudo sed -i "s/^After=.*/After=bootstrap.service/g" /etc/systemd/system/${network}d.service
|
||||
|
||||
source ${infoFile}
|
||||
echo "WAIT LOOP: FINAL SETUP .. see controlFinalDialog.sh" >> $logFile
|
||||
until [ "${state}" == "ready" ]
|
||||
|
|
Loading…
Add table
Reference in a new issue