0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-21 04:10:38 +00:00

chore: remove "web files" options leftovers ()

This commit is contained in:
Ilya Mashchenko 2022-03-15 14:59:16 +02:00 committed by GitHub
parent 1af82e4afb
commit c05d44f59e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 17 deletions
contrib/sles11
daemon
packaging
docker
installer/methods
web/api/tests

View file

@ -1,9 +1,6 @@
--- system/netdata.conf.orig 2018-05-10 19:44:49.000000000 +0300
+++ system/netdata.conf 2018-05-10 19:45:14.000000000 +0300
@@ -22,3 +22,7 @@
[web]
web files owner = root
web files group = netdata
+
+[health]
+ # script for sles 11, mail notifications only

View file

@ -445,12 +445,6 @@ static void backwards_compatible_config() {
config_move(CONFIG_SECTION_GLOBAL, "web compression level",
CONFIG_SECTION_WEB, "gzip compression level");
config_move(CONFIG_SECTION_GLOBAL, "web files owner",
CONFIG_SECTION_WEB, "web files owner");
config_move(CONFIG_SECTION_GLOBAL, "web files group",
CONFIG_SECTION_WEB, "web files group");
}
static void get_netdata_configured_variables() {

View file

@ -52,4 +52,4 @@ if [ -n "${NETDATA_CLAIM_URL}" ] && [ -n "${NETDATA_CLAIM_TOKEN}" ] && [ ! -f /v
-daemon-not-running
fi
exec /usr/sbin/netdata -u "${DOCKER_USR}" -D -s /host -p "${NETDATA_LISTENER_PORT}" -W set web "web files group" root -W set web "web files owner" root "$@"
exec /usr/sbin/netdata -u "${DOCKER_USR}" -D -s /host -p "${NETDATA_LISTENER_PORT}" "$@"

View file

@ -34,9 +34,7 @@ chown -R netdata:netdata /opt/netdata/var/lib/netdata /opt/netdata/var/cache/net
chown -R netdata:root /opt/netdata/var/log/netdata
```
4. Uncomment and set `web files owner` to `root`, and `web files group` to `netdata` in
the `/opt/netdata/etc/netdata/netdata.conf`.
5. Restart Netdata
4. Restart Netdata
```sh
/etc/rc.netdata restart

View file

@ -75,9 +75,9 @@ void __wrap_finished_web_request_statistics(
char *__wrap_config_get(struct config *root, const char *section, const char *name, const char *default_value)
{
if (!strcmp(section, CONFIG_SECTION_WEB) && !strcmp(name, "web files owner"))
return "netdata";
(void)root;
(void)section;
(void)name;
(void)default_value;
return "UNKNOWN FIX ME";
}

View file

@ -75,9 +75,9 @@ void __wrap_finished_web_request_statistics(
char *__wrap_config_get(struct config *root, const char *section, const char *name, const char *default_value)
{
if (!strcmp(section, CONFIG_SECTION_WEB) && !strcmp(name, "web files owner"))
return "netdata";
(void)root;
(void)section;
(void)name;
(void)default_value;
return "UNKNOWN FIX ME";
}