diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-04-30 19:38:08 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-04-30 19:38:08 +0300 |
commit | 9758428567190cea5e20f4739f5e904def874a62 (patch) | |
tree | f9c0dfb550fb2272d5b244f6adfbc3c340a0b1ee /netdata-installer.sh | |
parent | e96e66a953c32d8ecec7f3f6d23b4c88e7451b9a (diff) |
removed unused variables
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index 7f899f63b2..1887901d76 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -630,7 +630,7 @@ progress "Read installation options from netdata.conf" # function to extract values from the config file config_option() { - local section="${1}" key="${2}" value="${3}" line= + local section="${1}" key="${2}" value="${3}" if [ -s "${NETDATA_PREFIX}/etc/netdata/netdata.conf" ] then @@ -638,8 +638,6 @@ config_option() { -c "${NETDATA_PREFIX}/etc/netdata/netdata.conf" \ -W get "${section}" "${key}" "${value}" || \ echo "${value}" - # line="$( grep "^[[:space:]]*${key}[[:space:]]*=[[:space:]]*" "${NETDATA_PREFIX}/etc/netdata/netdata.conf" | head -n 1 )" - # [ ! -z "${line}" ] && value="$( echo "${line}" | cut -d '=' -f 2 | sed -e "s/^[[:space:]]\+//g" -e "s/[[:space:]]\+$//g" )" else echo "${value}" fi @@ -657,9 +655,6 @@ fi NETDATA_WEB_USER="$( config_option "web" "web files owner" "${NETDATA_USER}" )" NETDATA_WEB_GROUP="$( config_option "web" "web files group" "${NETDATA_WEB_USER}" )" -# debug flags -NETDATA_DEBUG="$( config_option "global" "debug flags" 0 )" - # port defport=19999 NETDATA_PORT="$( config_option "web" "default port" ${defport} )" |