summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-05-20 21:01:42 +0200
committertv <tv@shackspace.de>2015-05-20 21:01:42 +0200
commitcb8398ada927b9f37eecd497e00292fa5b0e9caa (patch)
tree58008d5e223b9c73187a18641828ad50bdc9cbd3
parent5245d6dd955b159c7a59c4e6e0496cf42d2f464c (diff)
networking-configuration: use lib/cac.sh
-rwxr-xr-xnetworking-configuration15
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)