mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-06 18:12:14 +02:00
move change of bitcoin service after provision
This commit is contained in:
@@ -633,6 +633,11 @@ if [ ${isMounted} -eq 0 ]; then
|
|||||||
# mark provision process done
|
# mark provision process done
|
||||||
sed -i "s/^message=.*/message='Provision Done'/g" ${infoFile}
|
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
|
||||||
|
sed -i "s/^Wants=.*/Wants=bootstrap.service/g" /etc/systemd/system/${network}d.service
|
||||||
|
sed -i "s/^After=.*/After=network.target/g" /etc/systemd/system/${network}d.service
|
||||||
|
|
||||||
# wait until syncProgress is available (neeed for final dialogs)
|
# wait until syncProgress is available (neeed for final dialogs)
|
||||||
while [ "${syncProgress}" == "" ]
|
while [ "${syncProgress}" == "" ]
|
||||||
do
|
do
|
||||||
@@ -679,11 +684,6 @@ if [ ${isMounted} -eq 0 ]; then
|
|||||||
########################################
|
########################################
|
||||||
# AFTER FINAL SETUP TASKS
|
# AFTER FINAL SETUP TASKS
|
||||||
|
|
||||||
# make sure for future starts that blockchain service gets started after bootstrap
|
|
||||||
# so deamon reloas needed ... system will go into reboot just in a second
|
|
||||||
sed -i "s/^Wants=.*/Wants=bootstrap.service/g" /etc/systemd/system/${network}d.service
|
|
||||||
sed -i "s/^After=.*/After=network.target/g" /etc/systemd/system/${network}d.service
|
|
||||||
|
|
||||||
# delete setup data from RAM
|
# delete setup data from RAM
|
||||||
sudo rm ${setupFile}
|
sudo rm ${setupFile}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user