diff options
-rwxr-xr-x | networking-configuration | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/networking-configuration b/networking-configuration index 985bbe73a..5813c208c 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) |