Automated license install not working on first install

Thanks for the reply.

After I run the license commands I would expect when I launch Kibana for the first time that it goes straight to the index page. Instead it goes to the login page meaning the basic license hasn't been applied.
It's version 5.3.

It works after I Iog into Kibana and then run the curl commands again separately.