Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 484900 - www-apps/tt-rss-1.9 init.d script assumes apache user
Summary: www-apps/tt-rss-1.9 init.d script assumes apache user
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Thomas Kahle (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-14 12:39 UTC by Miguel Tavares
Modified: 2013-09-24 09:12 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Tavares 2013-09-14 12:39:48 UTC
The init.d script of tt-rss assumes that the web application is installed with apache (or at least using a apache user).

When starting the update daemon:
init.d # ./ttrssd start
chown: invalid user: 'apache:lighttpd'
 * ERROR: ttrssd failed to start

The workaround is to set the correct user (depends on the web server being used) at line 46 of the script.

In my case (using lighttpd):
46c46
<                               chown -R "apache:${TTRSSD_GROUP}" "${instance}/${dir}" || return 1
---
>                               chown -R "lighttpd:${TTRSSD_GROUP}" "${instance}/${dir}" || return 1

Hope it helps and thanks for maintaining the ebuild.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-09-14 16:13:10 UTC
files/ttrssd.initd-r2:        # FIXME: This should be done by webapp-config during install
Comment 2 Rafael Martins (RETIRED) gentoo-dev 2013-09-23 22:38:21 UTC
I have the same issue.

Seeing a hardcoded user in the init script is quite frustrating.

But wait, it could be worse. He could include www-servers/apache to RDEPEND. :(
Comment 3 Thomas Kahle (RETIRED) gentoo-dev 2013-09-24 09:12:21 UTC
Hi,

this should be fixed now.  The init script should not modify the user of those files (which is set by webapp-config already), but only the group (which it sets to the ttrssd group whenever the deamon starts).  There are some other odd things with this initscript which I'll iron out later.  I just recently took over maintenance.  Please stay tuned, and don't run amok because of small bugs. 

Note: If you are in the screwed state, you may need to fix permissions by hand or make sure you reinstall all files after the old version of the initscript was removed (update won't do).