> > I didn't check the shell syntax, but you get the idea. 
>
> > if [ -f NEWINSTALL -a -d applications/welcome ]; then 
> >        python -c "from gluon.fileutils import w2p_pack; 
> w2p_pack('welcome.w2p','applications/welcome')" 
> >        rm NEWINSTALL 
> > fi 
>

Looks ok, I found this alternative (which is almost identical, but imports 
widget.py):

sudo -u uwsgi python$PREFIX -c "from gluon.main import save_password;from 
gluon import widget;save_password('$PW',443);widget.console()"


Borrowed from the ubuntu deployment script to create the admin password, 
adding the console() call from the web2py start
At least It works if tested separately

Thanks

-- 



Reply via email to