mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Fix certbot plugins install when using PUID/PGID
This commit is contained in:
parent
0127dc7f03
commit
05307aa253
@ -131,7 +131,7 @@ const setupCertbotPlugins = () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (plugins.length) {
|
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));
|
promises.push(utils.exec(install_cmd));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
chown -R "$PUID:$PGID" /etc/nginx/nginx.conf
|
chown -R "$PUID:$PGID" /etc/nginx/nginx.conf
|
||||||
chown -R "$PUID:$PGID" /etc/nginx/conf.d
|
chown -R "$PUID:$PGID" /etc/nginx/conf.d
|
||||||
|
|
||||||
|
# Prevents errors when installing python certbot plugins when non-root
|
||||||
|
chown -R "$PUID:$PGID" /opt/certbot
|
||||||
|
Loading…
Reference in New Issue
Block a user