Skip to content
Snippets Groups Projects
Commit c96a8578 authored by Bob Mottram's avatar Bob Mottram
Browse files

Wait for manifest

parent 384dc762
No related branches found
No related tags found
No related merge requests found
......@@ -254,7 +254,7 @@ EOF
echo 'User=scuttlebot';
echo 'Group=scuttlebot';
echo "WorkingDirectory=/etc/scuttlebot";
echo 'ExecStart=/etc/scuttlebot/node_modules/.bin/sbot server';
echo 'ExecStart=/etc/scuttlebot/node_modules/scuttlebot/bin.js server';
echo 'Restart=always';
echo 'Environment="USER=scuttlebot"';
echo '';
......@@ -306,7 +306,7 @@ EOF
echo 'User=scuttlebot';
echo 'Group=scuttlebot';
echo "WorkingDirectory=/etc/scuttlebot";
echo 'ExecStart=/etc/scuttlebot/node_modules/.bin/sbot server';
echo 'ExecStart=/etc/scuttlebot/node_modules/scuttlebot/bin.js server';
echo 'Restart=always';
echo 'Environment="USER=scuttlebot"';
echo '';
......@@ -357,6 +357,21 @@ EOF
firewall_add scuttlebot ${SCUTTLEBOT_PORT}
# wait for keys to be generated
ctr=0
until [ $ctr -lt 6 ]; do
if [ -f /etc/scuttlebot/.ssb/manifest.json ]; then
break
fi
ctr=$((ctr+1))
sleep 3
done
if [ ! -f /etc/scuttlebot/.ssb/manifest.json ]; then
echo $'scuttlebot manifest was not generated'
exit 3658735
fi
scuttlebot_create_single_invite
if ! grep -q "scuttlebot version:" "${COMPLETION_FILE}"; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment