mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-21 00:06:44 +01:00
Don't fail if user has bind mounted nginx config (#11671)
This commit is contained in:
parent
758df09da3
commit
8179278bfa
@ -16,7 +16,8 @@ function set_worker_processes() {
|
|||||||
proc_count=4;
|
proc_count=4;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sed -i "s/worker_processes auto;/worker_processes ${proc_count};/" /usr/local/nginx/conf/nginx.conf
|
# we need to catch any errors because sed will fail if user has bind mounted a custom nginx file
|
||||||
|
sed -i "s/worker_processes auto;/worker_processes ${proc_count};/" /usr/local/nginx/conf/nginx.conf || true
|
||||||
}
|
}
|
||||||
|
|
||||||
set_worker_processes
|
set_worker_processes
|
||||||
|
Loading…
Reference in New Issue
Block a user