jelastic-jps / lets-encrypt

Let’s Encrypt Add-on for Jelastic PaaS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"webroot" ownership broken after updating let's encrypt

fnordfish opened this issue · comments

Jelasic Versions
PLATFORM_VERSION=5.0.6
PLATFORM_PROTOCOL_VERSION=1.0
PLATFORM_PROTOCOL_PORT=56985
COMPUTE_TYPE=nginx-ruby
COMPUTE_TYPE_VERSION=1
COMPUTE_TYPE_FULL_VERSION=1.0.0
SENDMAIL_ENABLED=0
FIREWALL_ENABLED=1

After the periodical update of our Let's Encrypt certs, the ownership of /var/www/webroot changed recursively from nginx:nginx to apache:apache. We didn't notice until our app started to throw errors, that it wasn't able to create tempfiles any more. We had to redeploy into another directory and change the nginx configs to point to it.

I've done a quick grep over the project and found this line:

[ -d "/var/www/" ] && chown -R apache:apache "/var/www/" 2> /dev/null

@ihorman, please take a look, seems like related to the issue we discussed recently.

@fnordfish, the issue is fixed, thanks!