summaryrefslogtreecommitdiffstats
path: root/netdata-installer.sh
diff options
context:
space:
mode:
authormrdrogdrog <mrdrogdrog@users.noreply.github.com>2018-09-27 22:35:48 +0200
committerPaweł Krupa <pawel@krupa.net.pl>2018-09-27 22:35:48 +0200
commit5ad64789b3bd42c4e4df77b4f7dc8ae8ba34943b (patch)
tree886034eaa96b5e52c5583ebe307221312d784397 /netdata-installer.sh
parent73608f86b4c10f72fff991fbf9bfa1a802c2d95c (diff)
force symlink of netdata-updater.sh (#4307)
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-xnetdata-installer.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh
index 0484cb35b6..9503ef9de6 100755
--- a/netdata-installer.sh
+++ b/netdata-installer.sh
@@ -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."