From e75b62efad83f1c5f061b57167125458cc97759f Mon Sep 17 00:00:00 2001 From: Clark Chen <9372896+clarkchentw@users.noreply.github.com> Date: Mon, 30 Mar 2020 16:48:22 +0800 Subject: [PATCH 1/3] Fix curl call curl wasn't called properly, due to '&' character exist in url without quote around it --- bin/v-activate-vesta-license | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-activate-vesta-license b/bin/v-activate-vesta-license index 6d5c875ec..fc753e898 100755 --- a/bin/v-activate-vesta-license +++ b/bin/v-activate-vesta-license @@ -35,7 +35,7 @@ check_args '2' "$#" 'MODULE LICENSE' # Activating license v_host='https://vestacp.com/checkout' -answer=$(curl -s $v_host/activate.php?licence_key=$license&module=$module) +answer=$(curl -s "$v_host/activate.php?licence_key=$license&module=$module") check_result $? "cant' connect to vestacp.com " $E_CONNECT # Checking server answer From e4710ae71547505a0665551e7d7b049bca3bf7ab Mon Sep 17 00:00:00 2001 From: Clark Chen <9372896+clarkchentw@users.noreply.github.com> Date: Mon, 30 Mar 2020 16:50:07 +0800 Subject: [PATCH 2/3] Fix curl call curl wasn't called properly, due to '&' character exist in url without quote around it --- bin/v-deactivate-vesta-license | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-deactivate-vesta-license b/bin/v-deactivate-vesta-license index 5839aaad5..74e39f65c 100755 --- a/bin/v-deactivate-vesta-license +++ b/bin/v-deactivate-vesta-license @@ -35,7 +35,7 @@ check_args '2' "$#" 'MODULE LICENSE' # Activating license v_host='https://vestacp.com/checkout' -answer=$(curl -s $v_host/cancel.php?licence_key=$license) +answer=$(curl -s "$v_host/cancel.php?licence_key=$license") check_result $? "cant' connect to vestacp.com " $E_CONNECT # Checking server answer From 7177dbb4e751886639cc787dbfaf4ac05453fbb9 Mon Sep 17 00:00:00 2001 From: Clark Chen <9372896+clarkchentw@users.noreply.github.com> Date: Mon, 30 Mar 2020 16:55:13 +0800 Subject: [PATCH 3/3] Fill missing get data (module) --- bin/v-deactivate-vesta-license | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-deactivate-vesta-license b/bin/v-deactivate-vesta-license index 74e39f65c..c7279e456 100755 --- a/bin/v-deactivate-vesta-license +++ b/bin/v-deactivate-vesta-license @@ -35,7 +35,7 @@ check_args '2' "$#" 'MODULE LICENSE' # Activating license v_host='https://vestacp.com/checkout' -answer=$(curl -s "$v_host/cancel.php?licence_key=$license") +answer=$(curl -s "$v_host/cancel.php?licence_key=$license&module=$module") check_result $? "cant' connect to vestacp.com " $E_CONNECT # Checking server answer