Wait longer when initialising scuttlebot pub on mesh peer

This commit is contained in:
Bob Mottram 2017-12-10 12:22:39 +00:00
parent bafaec7e67
commit df33a12702
1 changed files with 3 additions and 1 deletions

View File

@ -1292,10 +1292,11 @@ function initialise_scuttlebot_pub {
systemctl daemon-reload
systemctl start scuttlebot.service
sleep 3
sleep 10
if [ ! -d /etc/scuttlebot/.ssb ]; then
echo $'Scuttlebot config not generated' >> /var/log/${PROJECT_NAME}.log
systemctl status scuttlebot -l >> /var/log/${PROJECT_NAME}.log
exit 73528
fi
@ -1320,6 +1321,7 @@ function initialise_scuttlebot_pub {
echo '}' >> /etc/scuttlebot/.ssb/config
chown scuttlebot:scuttlebot /etc/scuttlebot/.ssb/config
systemctl restart scuttlebot.service
echo "scuttlebot pub started" >> /var/log/${PROJECT_NAME}.log
}
# whether to reset the identity