fix edit-config for containerized Netdata when running from host (#15641)
fix check-dirs for containerized netdata when running from host
Ilya Mashchenko committed
Aug 2, 2023 at 10:20 UTC
33cf70ca8ecaceaf254b794ec596074f2263fd84
1 file changed
+6
system/edit-config
+6
@@ -57,6 +57,12 @@ is_prefix() {
57
}
58
59
check_directories() {
60
+ if [ -f "${script_dir}/.container-hostname" ]; then
61
+ NETDATA_USER_CONFIG_DIR="${script_dir}"
62
+ NETDATA_STOCK_CONFIG_DIR="/usr/lib/netdata/conf.d"
63
+ return
64
+ fi
65
+
66
if [ -e "${script_dir}/.environment" ]; then
67
OLDPATH="${PATH}"
68
# shellcheck disable=SC1091