summaryrefslogtreecommitdiffstats
path: root/netdata-installer.sh
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-02-13 00:38:04 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-02-13 00:38:04 +0200
commita3c5158376af647fba27e9259f09d425c60edeff (patch)
tree0cfc04191f74e243e39d5ea0e4dd55d9da1d54bd /netdata-installer.sh
parent0f5a993c1da54e16c1c04f65d43069912b6d95c9 (diff)
fixed typo in installer and other minor improvements
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-xnetdata-installer.sh17
1 files changed, 13 insertions, 4 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh
index 584e2e67b2..95a02b5ffd 100755
--- a/netdata-installer.sh
+++ b/netdata-installer.sh
@@ -1216,10 +1216,10 @@ progress "Basic netdata instructions"
cat <<END
-netdata by default netdata listens on all IPs on port ${NETDATA_PORT},
+netdata by default listens on all IPs on port ${NETDATA_PORT},
so you can access it with:
-http://this.machine.ip:${NETDATA_PORT}/
+ ${TPUT_CYAN}${TPUT_BOLD}http://this.machine.ip:${NETDATA_PORT}/${TPUT_RESET}
To stop netdata, just kill it, with:
@@ -1231,7 +1231,7 @@ To start it, just run it:
END
-echo >&2 "Uninstall script generated: ${TPUT_YELLOW}${TPUT_BOLD}./netdata-uninstaller.sh${TPUT_RESET}"
+echo >&2 "Uninstall script generated: ${TPUT_RED}${TPUT_BOLD}./netdata-uninstaller.sh${TPUT_RESET}"
if [ -d .git ]
then
@@ -1347,7 +1347,16 @@ update && exit 0
REINSTALL
chmod 755 netdata-updater.sh.new
mv -f netdata-updater.sh.new netdata-updater.sh
- echo >&2 "Update script generated : ${TPUT_YELLOW}${TPUT_BOLD}./netdata-updater.sh${TPUT_RESET}"
+ echo >&2 "Update script generated : ${TPUT_GREEN}${TPUT_BOLD}./netdata-updater.sh${TPUT_RESET}"
+ echo >&2
+ echo >&2 "${TPUT_DIM}${TPUT_BOLD}netdata-updater.sh${TPUT_RESET}${TPUT_DIM} can work from cron. It will trigger an email from cron"
+ echo >&2 "only if it fails (it does not print anything if it can update netdata).${TPUT_RESET}"
+ if [ "${UID}" -eq 0 -a -d "/etc/cron.daily" -a ! -f "/etc/cron.daily/netdata-updater.sh" ]
+ then
+ echo >&2 "${TPUT_DIM}Run this to automatically check and install netdata updates once per day:${TPUT_RESET}"
+ echo >&2
+ echo >&2 "${TPUT_YELLOW}${TPUT_BOLD}ln -s ${PWD}/netdata-updater.sh /etc/cron.daily/netdata-updater.sh${TPUT_RESET}"
+ fi
elif [ -f "netdata-updater.sh" ]
then
rm "netdata-updater.sh"