mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-19 12:03:01 +03:00
feat: native support for rootless container execution
This commit is contained in:
@@ -65,6 +65,11 @@ function set_worker_processes() {
|
||||
|
||||
set_worker_processes
|
||||
|
||||
# NGINX cannot switch users if running rootless; strip the directive
|
||||
if [ "$(id -u)" != "0" ]; then
|
||||
sed -i '/^user root;/d' /usr/local/nginx/conf/nginx.conf || true
|
||||
fi
|
||||
|
||||
# ensure the directory for ACME challenges exists
|
||||
mkdir -p /etc/letsencrypt/www
|
||||
|
||||
|
||||
Reference in New Issue
Block a user