Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

force symlink of netdata-updater.sh #4307

Merged
merged 1 commit into from
Sep 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions netdata-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1290,16 +1290,16 @@ REINSTALL
if [ "${AUTOUPDATE}" = "1" ]
then
progress "Installing netdata-updater at cron"
run ln -s "${PWD}/netdata-updater.sh" "${crondir}/netdata-updater"
run ln -fs "${PWD}/netdata-updater.sh" "${crondir}/netdata-updater"
else
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}sudo ln -s ${PWD}/netdata-updater.sh ${crondir}/netdata-updater${TPUT_RESET}"
echo >&2 "${TPUT_YELLOW}${TPUT_BOLD}sudo ln -fs ${PWD}/netdata-updater.sh ${crondir}/netdata-updater${TPUT_RESET}"
fi
else
progress "Refreshing netdata-updater at cron"
run rm "${crondir}/netdata-updater"
run ln -s "${PWD}/netdata-updater.sh" "${crondir}/netdata-updater"
run ln -fs "${PWD}/netdata-updater.sh" "${crondir}/netdata-updater"
fi
else
[ "${AUTOUPDATE}" = "1" ] && echo >&2 "Cannot figure out the cron directory to install netdata-updater."
Expand Down