mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 15:53:33 +00:00 
			
		
		
		
	Fix pip installs running as non-root user
This commit is contained in:
		| @@ -877,7 +877,7 @@ const internalCertificate = { | |||||||
| 		const escapedCredentials = certificate.meta.dns_provider_credentials.replaceAll('\'', '\\\'').replaceAll('\\', '\\\\'); | 		const escapedCredentials = certificate.meta.dns_provider_credentials.replaceAll('\'', '\\\'').replaceAll('\\', '\\\\'); | ||||||
| 		const credentialsCmd     = 'mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo \'' + escapedCredentials + '\' > \'' + credentialsLocation + '\' && chmod 600 \'' + credentialsLocation + '\''; | 		const credentialsCmd     = 'mkdir -p /etc/letsencrypt/credentials 2> /dev/null; echo \'' + escapedCredentials + '\' > \'' + credentialsLocation + '\' && chmod 600 \'' + credentialsLocation + '\''; | ||||||
| 		// we call `. /opt/certbot/bin/activate` (`.` is alternative to `source` in dash) to access certbot venv | 		// we call `. /opt/certbot/bin/activate` (`.` is alternative to `source` in dash) to access certbot venv | ||||||
| 		let prepareCmd = '. /opt/certbot/bin/activate && pip install ' + dns_plugin.package_name + (dns_plugin.version_requirement || '') + ' ' + dns_plugin.dependencies + ' && deactivate'; | 		const prepareCmd = '. /opt/certbot/bin/activate && pip install --no-cache-dir --user ' + dns_plugin.package_name + (dns_plugin.version_requirement || '') + ' ' + dns_plugin.dependencies + ' && deactivate'; | ||||||
|  |  | ||||||
| 		// Whether the plugin has a --<name>-credentials argument | 		// Whether the plugin has a --<name>-credentials argument | ||||||
| 		const hasConfigArg = certificate.meta.dns_provider !== 'route53'; | 		const hasConfigArg = certificate.meta.dns_provider !== 'route53'; | ||||||
|   | |||||||
| @@ -131,7 +131,7 @@ const setupCertbotPlugins = () => { | |||||||
| 				}); | 				}); | ||||||
|  |  | ||||||
| 				if (plugins.length) { | 				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)); | 					promises.push(utils.exec(install_cmd)); | ||||||
| 				} | 				} | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| # WARNING: This is a CI docker-compose file used for building and testing of the entire app, it should not be used for production. | # WARNING: This is a CI docker-compose file used for building and testing of the entire app, it should not be used for production. | ||||||
| version: "3" | version: '3.8' | ||||||
| services: | services: | ||||||
|  |  | ||||||
|   fullstack-mysql: |   fullstack-mysql: | ||||||
|   | |||||||
| @@ -1,6 +1,7 @@ | |||||||
| # WARNING: This is a DEVELOPMENT docker-compose file, it should not be used for production. | # WARNING: This is a DEVELOPMENT docker-compose file, it should not be used for production. | ||||||
| version: "3.5" | version: '3.8' | ||||||
| services: | services: | ||||||
|  |  | ||||||
|   npm: |   npm: | ||||||
|     image: nginxproxymanager:dev |     image: nginxproxymanager:dev | ||||||
|     container_name: npm_core |     container_name: npm_core | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user