@cryptotaxi247 / netdata-1 / commits / 201c1c378

kickstart.sh: remove updater symlink (#5276)

* Update kickstart.sh * Update kickstart.sh * add docs

Paweł Krupa committed Jan 29, 2019 at 10:09 UTC 201c1c37822d2c754697d49b5802bd8c72dcba9f
2 files changed +8 -1
packaging/installer/README.md
+3 -1
@@ -41,7 +41,7 @@ bash <(curl -Ss https://my-netdata.io/kickstart.sh)
41 Verify the integrity of the script with this:
42
43 ```bash
44 -[ "fad7227872a0afd07b74ac8d23cef017" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
44 +[ "f16d433f3fc86264fa2e05808369c54b" = "$(curl -Ss https://my-netdata.io/kickstart.sh | md5sum | cut -d ' ' -f 1)" ] && echo "OK, VALID" || echo "FAILED, INVALID"
45 ```
46 *It should print `OK, VALID` if the script is the one we ship.*
47
@@ -61,6 +61,8 @@ For automated installs, append a space + `--dont-wait` to the command line. You
61 bash <(curl -Ss https://my-netdata.io/kickstart.sh) --dont-wait --dont-start-it
62 ```
63
64 +If you don't want to receive automatic updates, add `--no-updates` when executing `kickstart.sh` script.
65 +
66 </details>&nbsp;<br/>
67
68 Once Netdata is installed, see [Getting Started](../../docs/GettingStarted.md).
packaging/installer/kickstart.sh
+5
@@ -162,6 +162,11 @@ setup_terminal || echo >/dev/null
162 updater=""
163 [ -x /etc/periodic/daily/netdata-updater ] && updater=/etc/periodic/daily/netdata-updater
164 [ -x /etc/cron.daily/netdata-updater ] && updater=/etc/cron.daily/netdata-updater
165 +if [ -L "${updater}" ]; then
166 + # remove old updater (symlink)
167 + run "${sudo}" rm -f "${updater}"
168 + updater=""
169 +fi
170 if [ -n "${updater}" ]; then
171 # attempt to run the updater, to respect any compilation settings already in place
172 progress "Re-installing netdata..."