[web2py] Setup web2py in Vagrant provision phase

2016-10-04 Thread Marko Seppälä
Hi, I'm using Vagrant to create Ubuntu 14.04 virtual server. I use setup-web2py-ubuntu.sh script in provision phase but it doesn't work out of the box with Vagrant. If I ssh to virtual server and run the script, everything works. But in "creating a self signed certificate" phase script asks so

Re: [web2py] Setup web2py in Vagrant provision phase

2016-10-04 Thread Richard Vézina
prompt and read, then http://stackoverflow.com/questions/15476479/sign-certificate-without-prompt-in-shell-script Richard On Tue, Oct 4, 2016 at 2:04 PM, Marko Seppälä wrote: > Hi, > > I'm using Vagrant to create Ubuntu 14.04 virtual server. I use > setup-web2py-ubuntu.sh > script in provision

Re: [web2py] Setup web2py in Vagrant provision phase

2016-10-05 Thread Marko Seppälä
Hi Richard, Thanks for your reply. Unfortunately your answer is not detailed enough to make it sure that I did everything correctly. I managed to make it work by just adding -batch option to "openssl reg -new ..." command. Also everything seems to work when I ssh to server and try wget to 127.

Re: [web2py] Setup web2py in Vagrant provision phase

2016-10-06 Thread Richard Vézina
You have to work it, I bassically tell you how to do it then you have to formalize it. You have to grab information at the launch of the script with bash prompt and read to capture the prompt input then you have to alter the openssl command in order to pass it the option you grab in the first place