mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-26 13:47:03 +02:00
Fix substitution change (#6212)
This commit is contained in:
parent
cdd8e6fd4e
commit
ece7dc29e7
@ -12,7 +12,7 @@ s6-svc -O .
|
|||||||
function migrate_db_path() {
|
function migrate_db_path() {
|
||||||
# Find config file in yaml or yml, but prefer yaml
|
# Find config file in yaml or yml, but prefer yaml
|
||||||
local config_file="${CONFIG_FILE:-"/config/config.yml"}"
|
local config_file="${CONFIG_FILE:-"/config/config.yml"}"
|
||||||
local config_file_yaml="${config_file//.yaml/.yml}"
|
local config_file_yaml="${config_file//.yml/.yaml}"
|
||||||
if [[ -f "${config_file_yaml}" ]]; then
|
if [[ -f "${config_file_yaml}" ]]; then
|
||||||
config_file="${config_file_yaml}"
|
config_file="${config_file_yaml}"
|
||||||
elif [[ ! -f "${config_file}" ]]; then
|
elif [[ ! -f "${config_file}" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user