Bladeren bron

Merge pull request #1987 from clarkchentw/clarkchentw-patch-1

Fix curl call
Anton Reutov 4 jaren geleden
bovenliggende
commit
9aeef63ff4
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      bin/v-activate-vesta-license
  2. 1 1
      bin/v-deactivate-vesta-license

+ 1 - 1
bin/v-activate-vesta-license

@@ -35,7 +35,7 @@ is_user_format_valid "$license" "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

+ 1 - 1
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