Wait for syslog when installing tox

This commit is contained in:
Bob Mottram 2016-10-19 10:32:57 +01:00
parent e73a1ce7b6
commit 11f58991b1
1 changed files with 3 additions and 1 deletions

View File

@ -363,7 +363,9 @@ function install_tox_node {
systemctl restart tox-bootstrapd.service
TOX_PUBLIC_KEY=$(cat /var/log/syslog | grep tox | grep "Public Key" | awk -F ' ' '{print $8}' | tail -1)
sleep 3
TOX_PUBLIC_KEY=$(cat /var/log/syslog | grep tox | grep "Public Key" | tail -n 1 | awk -F ' ' '{print $8}')
if [ ${#TOX_PUBLIC_KEY} -lt 30 ]; then
echo $'Could not obtain the tox node public key'
exit 6529