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

Getting current invite

parent 222cae21
No related branches found
No related tags found
No related merge requests found
......@@ -2463,7 +2463,7 @@ function create_scuttlebot_invite {
echo $'Unable to create scuttlebot invite'
exit 36583568
fi
current_invite=$(grep 'SCUTTLEBOT_INVITE=' "/root/${PROJECT_NAME}.cfg" | head -n 1 | awk -F '=' '{print $2}')
current_invite=$(grep 'SCUTTLEBOT_INVITE=' "/root/${PROJECT_NAME}.cfg" | head -n 1 | sed -i 's|SCUTTLEBOT_INVITE=||g')
sed -i "s|SCUTTLEBOT_INVITE=.*|SCUTTLEBOT_INVITE=${invite_string}|g" "/root/${PROJECT_NAME}.cfg"
sed -i "s|$current_invite|$invite_string|g" "$webadmin_install_dir/app_scuttlebot.html"
......
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