Skip to content

Commit 824c837

Browse files
authored
Merge pull request NginxProxyManager#2906 from NginxProxyManager/develop
Fix certbot plugins install when using PUID/PGID
2 parents 3d2406a + 2a06384 commit 824c837

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

backend/setup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const setupCertbotPlugins = () => {
131131
});
132132

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

docker/rootfs/etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh

+3
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ chown -R "$PUID:$PGID" /var/log/nginx
2222
chown -R "$PUID:$PGID" /etc/nginx/nginx
2323
chown -R "$PUID:$PGID" /etc/nginx/nginx.conf
2424
chown -R "$PUID:$PGID" /etc/nginx/conf.d
25+
26+
# Prevents errors when installing python certbot plugins when non-root
27+
chown -R "$PUID:$PGID" /opt/certbot

0 commit comments

Comments
 (0)