View Single Post
  #17  
Old 22nd December 2010, 06:21
130 130 is offline
Junior Member
 
Join Date: Dec 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Drex56 View Post
So I have found the file that puts in the "--ini" into the command. Its called "/usr/lib/uwsgi/init/snippets" and I couldn't see a problem with the syntax (which is "echo ${1: -3}" for those who care)...So I hacked it (badly!). mine now reads

"echo ini # ${1: -3}"
Yes, it was my unintentional mistake. Sorry for distributing buggy uWSGI package (as excuse, I can tell that this line works perfectly in Debian).

But there is good news. I've made new packages of uWSGI 0.9.6.5 for Ubuntu 10.10 (and 10.04) where this bug was fixed.

If you're interested, take a look at the PPA page: https://launchpad.net/~uwsgi/+archive/release

Or just replace line
Code:
echo ${1: -3}
to
Code:
echo "$1" | sed 's/^.*\(ini\|xml\)$/\1/g'
Technically speaking, buggy line has bash-specific syntax, but default shell on Ubuntu is dash, where bash-specific things doesn't works. This is why this line fails.
Reply With Quote