fixed typo in installer and other minor improvements
Costa Tsaousis (ktsaou) committed
Feb 13, 2017 at 00:38 UTC
a3c5158376af647fba27e9259f09d425c60edeff
1 file changed
+13
-4
netdata-installer.sh
+13
-4
@@ -1216,10 +1216,10 @@ progress "Basic netdata instructions"
1216
1217
cat <<END
1218
1219
-netdata by default netdata listens on all IPs on port ${NETDATA_PORT},
1219
+netdata by default listens on all IPs on port ${NETDATA_PORT},
1220
so you can access it with:
1221
1222
-http://this.machine.ip:${NETDATA_PORT}/
1222
+ ${TPUT_CYAN}${TPUT_BOLD}http://this.machine.ip:${NETDATA_PORT}/${TPUT_RESET}
1223
1224
To stop netdata, just kill it, with:
1225
@@ -1231,7 +1231,7 @@ To start it, just run it:
1231
1232
1233
END
1234
-echo >&2 "Uninstall script generated: ${TPUT_YELLOW}${TPUT_BOLD}./netdata-uninstaller.sh${TPUT_RESET}"
1234
+echo >&2 "Uninstall script generated: ${TPUT_RED}${TPUT_BOLD}./netdata-uninstaller.sh${TPUT_RESET}"
1235
1236
if [ -d .git ]
1237
then
@@ -1347,7 +1347,16 @@ update && exit 0
1347
REINSTALL
1348
chmod 755 netdata-updater.sh.new
1349
mv -f netdata-updater.sh.new netdata-updater.sh
1350
- echo >&2 "Update script generated : ${TPUT_YELLOW}${TPUT_BOLD}./netdata-updater.sh${TPUT_RESET}"
1350
+ echo >&2 "Update script generated : ${TPUT_GREEN}${TPUT_BOLD}./netdata-updater.sh${TPUT_RESET}"
1351
+ echo >&2
1352
+ echo >&2 "${TPUT_DIM}${TPUT_BOLD}netdata-updater.sh${TPUT_RESET}${TPUT_DIM} can work from cron. It will trigger an email from cron"
1353
+ echo >&2 "only if it fails (it does not print anything if it can update netdata).${TPUT_RESET}"
1354
+ if [ "${UID}" -eq 0 -a -d "/etc/cron.daily" -a ! -f "/etc/cron.daily/netdata-updater.sh" ]
1355
+ then
1356
+ echo >&2 "${TPUT_DIM}Run this to automatically check and install netdata updates once per day:${TPUT_RESET}"
1357
+ echo >&2
1358
+ echo >&2 "${TPUT_YELLOW}${TPUT_BOLD}ln -s ${PWD}/netdata-updater.sh /etc/cron.daily/netdata-updater.sh${TPUT_RESET}"
1359
+ fi
1360
elif [ -f "netdata-updater.sh" ]
1361
then
1362
rm "netdata-updater.sh"