diff --git a/deploy/install.sh b/deploy/install.sh index ce47c67faf..63e162bb68 100755 --- a/deploy/install.sh +++ b/deploy/install.sh @@ -313,11 +313,11 @@ bye() { # Prints a friendly good bye message and exits the script. curl -s -O --location --request POST 'https://hook.integromat.com/dkwb6i52am93pi30ojeboktvj32iw0fa' \ --header 'Content-Type: text/plain' \ --data-raw '{ - "userId": "'"$email"'", + "userId": "'"$APPSMITH_INSTALLATION_ID"'", "event": "Installation Support", "data": { "os": "'"$os"'", - "instanceId": "'"$APPSMITH_INSTALLATION_ID"'" + "email": "'"$email"'" } }' echo -e "\nExiting for now. Bye! \U1F44B\n" @@ -338,10 +338,10 @@ APPSMITH_INSTALLATION_ID=$(curl -s 'https://api6.ipify.org') curl -s -O --location --request POST 'https://hook.integromat.com/dkwb6i52am93pi30ojeboktvj32iw0fa' \ --header 'Content-Type: text/plain' \ --data-raw '{ + "userId": "'"$APPSMITH_INSTALLATION_ID"'", "event": "Installation Started", "data": { - "os": "'"$os"'", - "instanceId": "'"$APPSMITH_INSTALLATION_ID"'" + "os": "'"$os"'" } }' @@ -475,10 +475,10 @@ if confirm n "Do you have a custom domain that you would like to link? (Only for curl -s -O --location --request POST 'https://hook.integromat.com/dkwb6i52am93pi30ojeboktvj32iw0fa' \ --header 'Content-Type: text/plain' \ --data-raw '{ + "userId": "'"$APPSMITH_INSTALLATION_ID"'", "event": "Installation Custom Domain", "data": { - "os": "'"$os"'", - "instanceId": "'"$APPSMITH_INSTALLATION_ID"'" + "os": "'"$os"'" } }' echo "" @@ -569,21 +569,21 @@ if [[ $status_code -ne 401 ]]; then curl -s -O --location --request POST 'https://hook.integromat.com/dkwb6i52am93pi30ojeboktvj32iw0fa' \ --header 'Content-Type: text/plain' \ --data-raw '{ - "userId": "'"$email"'", + "userId": "'"$APPSMITH_INSTALLATION_ID"'", "event": "Installation Support", "data": { "os": "'"$os"'", - "instanceId": "'"$APPSMITH_INSTALLATION_ID"'" + "email": "'"$email"'" } }' else curl -s -O --location --request POST 'https://hook.integromat.com/dkwb6i52am93pi30ojeboktvj32iw0fa' \ --header 'Content-Type: text/plain' \ --data-raw '{ + "userId": "'"$APPSMITH_INSTALLATION_ID"'", "event": "Installation Success", "data": { - "os": "'"$os"'", - "instanceId": "'"$APPSMITH_INSTALLATION_ID"'" + "os": "'"$os"'" } }' echo "+++++++++++ SUCCESS ++++++++++++++++++++++++++++++" @@ -604,11 +604,11 @@ else curl -s -O --location --request POST 'https://hook.integromat.com/dkwb6i52am93pi30ojeboktvj32iw0fa' \ --header 'Content-Type: text/plain' \ --data-raw '{ - "userId": "'"$email"'", + "userId": "'"$APPSMITH_INSTALLATION_ID"'", "event": "Identify Successful Installation", "data": { "os": "'"$os"'", - "instanceId": "'"$APPSMITH_INSTALLATION_ID"'" + "email": "'"$email"'" } }' fi