Fix conditionals for claim-only case in kickstart.sh. (#14679)
Should have been updated as part of #13896, but somehow got missed there.
Austin S. Hemmelgarn committed
Mar 7, 2023 at 14:47 UTC
4c23625a8abe7eb3c41902e8c3965d41d1d1fc18
1 file changed
+2
-2
packaging/installer/kickstart.sh
+2
-2
@@ -959,9 +959,9 @@ handle_existing_install() {
959
failmsg="We do not support trying to update or claim installations when we cannot determine the install type. You will need to uninstall the existing install using the same method you used to install it to proceed. ${claimonly_notice}"
960
promptmsg="Attempting to update an existing install is not officially supported. It may work, but it also might break your system. ${claimonly_notice} Are you sure you want to continue?"
961
fi
962
- if [ "${INTERACTIVE}" -eq 0 ] && [ "${NETDATA_CLAIM_ONLY}" -eq 0 ]; then
962
+ if [ "${INTERACTIVE}" -eq 0 ] && [ "${ACTION}" != "claim" ]; then
963
fatal "${failmsg}" F0106
964
- elif [ "${INTERACTIVE}" -eq 1 ] && [ "${NETDATA_CLAIM_ONLY}" -eq 0 ]; then
964
+ elif [ "${INTERACTIVE}" -eq 1 ] && [ "${ACTION}" != "claim" ]; then
965
if confirm "${promptmsg}"; then
966
progress "OK, continuing"
967
else