Fix pip installs running as non-root user

This commit is contained in:
Jamie Curnow
2023-03-22 09:41:59 +10:00
parent 79fedfcea4
commit 77eb618758
4 changed files with 5 additions and 4 deletions

View File

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