diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2023-03-07 14:47:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-07 14:47:49 -0500 |
commit | 4c23625a8abe7eb3c41902e8c3965d41d1d1fc18 (patch) | |
tree | 58f4266b311a5634fd0be40deb162d2a61158ffb /packaging | |
parent | f8a50347a91f29d881d6458e554816df8733c936 (diff) |
Fix conditionals for claim-only case in kickstart.sh. (#14679)
Should have been updated as part of #13896, but somehow got missed
there.
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/installer/kickstart.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/installer/kickstart.sh b/packaging/installer/kickstart.sh index 4064d598cd..9c25ad98e5 100755 --- a/packaging/installer/kickstart.sh +++ b/packaging/installer/kickstart.sh @@ -959,9 +959,9 @@ handle_existing_install() { 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}" 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?" fi - if [ "${INTERACTIVE}" -eq 0 ] && [ "${NETDATA_CLAIM_ONLY}" -eq 0 ]; then + if [ "${INTERACTIVE}" -eq 0 ] && [ "${ACTION}" != "claim" ]; then fatal "${failmsg}" F0106 - elif [ "${INTERACTIVE}" -eq 1 ] && [ "${NETDATA_CLAIM_ONLY}" -eq 0 ]; then + elif [ "${INTERACTIVE}" -eq 1 ] && [ "${ACTION}" != "claim" ]; then if confirm "${promptmsg}"; then progress "OK, continuing" else |