diff options
author | tv <tv@krebsco.de> | 2015-05-20 21:01:42 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-05-20 21:01:42 +0200 |
commit | e145d2273a7a7e95dd799affdcca9739866b0573 (patch) | |
tree | 58008d5e223b9c73187a18641828ad50bdc9cbd3 /networking-configuration | |
parent | e99562597b7978ab48ad8ce68356de580b6b439f (diff) |
networking-configuration: use lib/cac.sh
Diffstat (limited to 'networking-configuration')
-rwxr-xr-x | networking-configuration | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/networking-configuration b/networking-configuration index 985bbe7..5813c20 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) |