Skip to content

Commit

Permalink
Merge pull request #2906 from NginxProxyManager/develop
Browse files Browse the repository at this point in the history
Fix certbot plugins install when using PUID/PGID
  • Loading branch information
jc21 authored May 10, 2023
2 parents 3d2406a + 2a06384 commit 824c837
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const setupCertbotPlugins = () => {
});

if (plugins.length) {
const install_cmd = '. /opt/certbot/bin/activate && pip install --no-cache-dir --user ' + plugins.join(' ') + ' && deactivate';
const install_cmd = '. /opt/certbot/bin/activate && pip install --no-cache-dir ' + plugins.join(' ') + ' && deactivate';
promises.push(utils.exec(install_cmd));
}

Expand Down
3 changes: 3 additions & 0 deletions docker/rootfs/etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ chown -R "$PUID:$PGID" /var/log/nginx
chown -R "$PUID:$PGID" /etc/nginx/nginx
chown -R "$PUID:$PGID" /etc/nginx/nginx.conf
chown -R "$PUID:$PGID" /etc/nginx/conf.d

# Prevents errors when installing python certbot plugins when non-root
chown -R "$PUID:$PGID" /opt/certbot

0 comments on commit 824c837

Please sign in to comment.