Comment 3 for bug 1616497

Revision history for this message
peter toneby (peter-toneby) wrote :

Looking at the postinst script it seems likely you want to compare to $? rather than $BINARY_IS_UWSGI_ALTERNATIVE. Although I'm not quite sure why you pipe through true in the last step since that will make sure 0 is always the return code. Grep returns 0 if a line was found, 1 if not and 2 if an error occured so to me it looks like you should be covered by that.

I did change the if statement on line 61 to
   if [ $? -eq 0 ]; then
And that seems to work, at least the package installed without any errors and I got the /usr/bin/uwsgi_python3 link that ultimatly points at uwsgi-core.

While checking the alternatives I realized that I had the python2-plugin installed so I uninstalled it and got python3 working.

Now I just have sort out some other uwsgi-configuration issue and I'll be all good.