From cb8398ada927b9f37eecd497e00292fa5b0e9caa Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 20 May 2015 21:01:42 +0200 Subject: networking-configuration: use lib/cac.sh --- networking-configuration | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'networking-configuration') diff --git a/networking-configuration b/networking-configuration index 985bbe73..5813c208 100755 --- a/networking-configuration +++ b/networking-configuration @@ -1,9 +1,11 @@ #! /bin/sh # -# usage: with cac ./generate-networking-configuration c838-828 cd +# usage: with cac ./networking-configuration c838-828 cd # set -euf +. ./lib/cac.sh + cac_servername=$1 hostname=$2 @@ -43,17 +45,6 @@ main() { } -cac_listservers() { - if test -z "${cac_via-}"; then - curl -fsS \ - "https://panel.cloudatcost.com/api/v1/listservers.php?key=$cac_key&login=$cac_login" - else - ssh -q $cac_via -t curl -fsS \ - "https://panel.cloudatcost.com/api/v1/listservers.php?key=$cac_key\\&login=$cac_login" - fi -} - - print_networking_configuraton() { config=$1 address=$(echo $config | jq -r .ip) -- cgit v1.2.3