removed unused variables
Costa Tsaousis (ktsaou) committed
Apr 30, 2017 at 19:38 UTC
9758428567190cea5e20f4739f5e904def874a62
1 file changed
+1
-6
netdata-installer.sh
+1
-6
@@ -630,7 +630,7 @@ progress "Read installation options from netdata.conf"
630
631
# function to extract values from the config file
632
config_option() {
633
- local section="${1}" key="${2}" value="${3}" line=
633
+ local section="${1}" key="${2}" value="${3}"
634
635
if [ -s "${NETDATA_PREFIX}/etc/netdata/netdata.conf" ]
636
then
@@ -638,8 +638,6 @@ config_option() {
638
-c "${NETDATA_PREFIX}/etc/netdata/netdata.conf" \
639
-W get "${section}" "${key}" "${value}" || \
640
echo "${value}"
641
- # line="$( grep "^[[:space:]]*${key}[[:space:]]*=[[:space:]]*" "${NETDATA_PREFIX}/etc/netdata/netdata.conf" | head -n 1 )"
642
- # [ ! -z "${line}" ] && value="$( echo "${line}" | cut -d '=' -f 2 | sed -e "s/^[[:space:]]\+//g" -e "s/[[:space:]]\+$//g" )"
641
else
642
echo "${value}"
643
fi
@@ -657,9 +655,6 @@ fi
655
NETDATA_WEB_USER="$( config_option "web" "web files owner" "${NETDATA_USER}" )"
656
NETDATA_WEB_GROUP="$( config_option "web" "web files group" "${NETDATA_WEB_USER}" )"
657
660
-# debug flags
661
-NETDATA_DEBUG="$( config_option "global" "debug flags" 0 )"
662
-
658
# port
659
defport=19999
660
NETDATA_PORT="$( config_option "web" "default port" ${defport} )"