I saw that the relevant operations are performed on first run in
widget.console(), so I suggest we execute this function in the script
too:

--- setup-web2py-ubuntu.sh      2010-10-13 01:22:51.000000000 +1100
+++ setup-web2py-ubuntu.sh.new  2010-10-17 22:49:52.258486749 +1100
@@ -163,5 +163,6 @@

 /etc/init.d/apache2 restart
 cd /home/www-data/web2py
+sudo -u www-data python -c "from gluon.widget import console;
console();"
 sudo -u www-data python -c "from gluon.main import save_password;
save_password(raw_input('admin password: '),443)"
 echo "done!"

Simon


On Oct 17, 1:58 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
> How do you suggest change the installation script to get this done
> automatically?
>
> On Oct 15, 3:38 pm, Zphen <sluk...@gmail.com> wrote:
>
> > > I upgraded to version 1.87.3, the problem I am facing is that I cannot
> > > upload and install packed applications via the admin web interface.
> > > The flash message: unable to install application "init".
>
> > I had the same problem when setting up an Ubuntu 10.04 AMI with web2py
> > 1.87.3 on EC2 yesterday using the setup-web2py-ubuntu.sh install
> > script as described in the book. Fortunately the first solution that I
> > tried solved it for me, which was from the WebFaction Forum 
> > athttp://forum.webfaction.com/viewtopic.php?pid=18401
>
> > mkdir web2py/deposit
> > touch web2py/applications/__init__.py
>
> > Simon
>
>

Reply via email to