From e2dd96c8be7b88825e79de2d9802391a27d56aa6 Mon Sep 17 00:00:00 2001 From: Ciaby Date: Fri, 24 Jul 2015 17:57:48 +0200 Subject: [PATCH] Change voip_password into voip_pin for get_account_balance.sh.erb --- modules/rhizo_base/templates/get_account_balance.sh.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rhizo_base/templates/get_account_balance.sh.erb b/modules/rhizo_base/templates/get_account_balance.sh.erb index b29d5de..33c91cf 100644 --- a/modules/rhizo_base/templates/get_account_balance.sh.erb +++ b/modules/rhizo_base/templates/get_account_balance.sh.erb @@ -2,6 +2,6 @@ # Write here the script to return the current balance for the voip account USERNAME="<%= @voip_username %>" -PIN="<%= @voip_password %>" +PIN="<%= @voip_pin %>" /usr/bin/curl -c /tmp/cookie.txt -L --data "p_sa=$USERNAME&p_pin=$PIN&p_nic=200&p_appname=reseller&p_formlang=english&dest=/account/reseller/english/splash.asp" "https://www.myaccountcenter.net/account/lookup.asp?WCI=login" 2>/dev/null | grep 'Funds Remaining' | awk -F'$' '{print $2}' | tr '' ' '