mirror of
https://github.com/netdata/netdata.git
synced 2025-04-10 08:07:34 +00:00
fix edit-config for containerized Netdata when running from host (#15641)
fix check-dirs for containerized netdata when running from host
This commit is contained in:
parent
7b880e42a9
commit
33cf70ca8e
1 changed files with 6 additions and 0 deletions
|
@ -57,6 +57,12 @@ is_prefix() {
|
|||
}
|
||||
|
||||
check_directories() {
|
||||
if [ -f "${script_dir}/.container-hostname" ]; then
|
||||
NETDATA_USER_CONFIG_DIR="${script_dir}"
|
||||
NETDATA_STOCK_CONFIG_DIR="/usr/lib/netdata/conf.d"
|
||||
return
|
||||
fi
|
||||
|
||||
if [ -e "${script_dir}/.environment" ]; then
|
||||
OLDPATH="${PATH}"
|
||||
# shellcheck disable=SC1091
|
||||
|
|
Loading…
Add table
Reference in a new issue