saving uncommitted changes in /etc prior to dnf run

This commit is contained in:
2023-08-10 11:58:05 +03:00
parent 2d84c3580c
commit b9d544b9c6
199 changed files with 5119 additions and 120 deletions

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