diff options
-rw-r--r-- | Makefile.am | 1 | ||||
-rwxr-xr-x | netdata-installer.sh | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index e010a50e39..33aa01a877 100644 --- a/Makefile.am +++ b/Makefile.am @@ -73,6 +73,7 @@ dist_noinst_SCRIPTS= \ coverity-scan.sh \ coverity-install.sh \ packaging/installer/netdata-updater.sh \ + packaging/installer/netdata-uninstaller.sh \ packaging/installer/kickstart.sh \ packaging/installer/kickstart-static64.sh \ packaging/installer/functions.sh \ diff --git a/netdata-installer.sh b/netdata-installer.sh index f9cb67e2a5..5e375d9785 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -984,6 +984,11 @@ SETUID_WARNING fi # ----------------------------------------------------------------------------- +progress "Copy uninstaller" +sed "s|ENVIRONMENT_FILE=\"/etc/netdata/.environment\"|ENVIRONMENT_FILE=\"${NETDATA_PREFIX}/etc/netdata/.environment\"|" packaging/installer/netdata-uninstaller.sh > ${NETDATA_PREFIX}/usr/libexec/netdata-uninstaller.sh +chmod 750 ${NETDATA_PREFIX}/usr/libexec/netdata-uninstaller.sh + +# ----------------------------------------------------------------------------- progress "Basic netdata instructions" cat <<END @@ -1003,6 +1008,7 @@ To start netdata run: END +echo >&2 "Uninstall script copied to: ${TPUT_RED}${TPUT_BOLD}${NETDATA_PREFIX}/usr/libexec/netdata-uninstaller.sh${TPUT_RESET}" if [ "${AUTOUPDATE}" = "1" ]; then if [ "${UID}" -ne "0" ]; then |