Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 527566 - www-servers/uwsgi - bashisms in /etc/init.d/uwsgi
Summary: www-servers/uwsgi - bashisms in /etc/init.d/uwsgi
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
Depends on:
Blocks: nonbash
  Show dependency tree
Reported: 2014-10-31 09:14 UTC by Philipp Riegger
Modified: 2014-11-05 11:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Riegger 2014-10-31 09:14:05 UTC
Using '[ "$foo" == "bar" ]' should not be used in a portable shell script, replace the == with = please.

Reproducible: Always

Steps to Reproduce:
1. Have the uwsgi init script installed an in a runlevel.
2. Run "rc" or "rc-service restart".

Actual Results:  
I get an error: '/lib/rc/sh/ 10: [: uwsgi.moin: unexpected operator'

Expected Results:  
There should be no error.

I use dash for /bin/sh.
Comment 1 Ultrabug gentoo-dev 2014-11-05 11:07:23 UTC
Thanks Philipp, it's fixed in tree :)

+*uwsgi-2.0.8-r1 (05 Nov 2014)
+  05 Nov 2014; Ultrabug <> +uwsgi-2.0.8-r1.ebuild,
+  +files/uwsgi.initd-r4:
+  init script enable emperor in app mode thx to Stefan Talpalaru fix #528136,
+  remove bashism thx to Philipp Riegger fix #527566