0
0
Fork 0
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 ()

fix check-dirs for containerized netdata when running from host
This commit is contained in:
Ilya Mashchenko 2023-08-02 10:20:03 +03:00 committed by GitHub
parent 7b880e42a9
commit 33cf70ca8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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