Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installing www-servers/nginx broke my system by chmodding / #16

Closed
infoman opened this issue Sep 6, 2014 · 1 comment
Closed

installing www-servers/nginx broke my system by chmodding / #16

infoman opened this issue Sep 6, 2014 · 1 comment

Comments

@infoman
Copy link

infoman commented Sep 6, 2014

nginx postinst phase contains the following string when updating from (as i understand) <1.4.1-r2:

    chmod -f o-rwx "${EPREFIX}"/var/log/nginx "${EPREFIX}/${NGINX_HOME_TMP}"/{,client,proxy,fastcgi,scgi,uwsgi}

But NGINX_HOME_TMP isn't defined anywhere. So, in postinst, it just chmods the root directory, making al users except root unable to use the filesystem. This effectively breaks the entire system and is hard to investigate and find out what the fuck happened.

Please fix.

@msva msva closed this as completed in 1b58c6e Sep 6, 2014
@msva
Copy link
Owner

msva commented Sep 6, 2014

I just fixed that by backporting more things from in-tree ebuild back to that.

Actually, I unhappy with both in-tree ebuild's calling raw "chown" and "su" without wrappers in postinst and moving the stuff into /var/lib, but I considered that keeping that fix may be needed for somebody who made last upgrade few years ago). Although, My fault is in that I forgot to replace exactly that condition of NGINX_HOME_TMP with proper paths that time.

Anyway, now I merged all the things to /var/lib/nginx, like in in-tree ebuild and it should work ok.

Anyway, sorry :-/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants