From: Costa Tsaousis (ktsaou) Date: Sun, 12 Feb 2017 22:38:04 +0000 (+0200) Subject: fixed typo in installer and other minor improvements X-Git-Tag: ab-debian_0.20170213.01-0ab1~1^2^2 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=a3c5158376af647fba27e9259f09d425c60edeff;hp=0f5a993c1da54e16c1c04f65d43069912b6d95c9;p=netdata.git fixed typo in installer and other minor improvements --- diff --git a/netdata-installer.sh b/netdata-installer.sh index 584e2e67..95a02b5f 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -1216,10 +1216,10 @@ progress "Basic netdata instructions" cat <&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"