diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2023-08-02 10:20:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-02 10:20:03 +0300 |
commit | 33cf70ca8ecaceaf254b794ec596074f2263fd84 (patch) | |
tree | 92e2aed7f59b156e631a78498a7e9a54b1b8a689 /system | |
parent | 7b880e42a930b6076bd0885ec94226d56b8c78e3 (diff) |
fix edit-config for containerized Netdata when running from host (#15641)
fix check-dirs for containerized netdata when running from host
Diffstat (limited to 'system')
-rwxr-xr-x | system/edit-config | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/system/edit-config b/system/edit-config index 96ee82d4fe..74f3634c3f 100755 --- a/system/edit-config +++ b/system/edit-config @@ -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 |