diff options
Diffstat (limited to 'lib/cac.sh')
-rw-r--r-- | lib/cac.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/cac.sh b/lib/cac.sh new file mode 100644 index 0000000..209bb4d --- /dev/null +++ b/lib/cac.sh @@ -0,0 +1,9 @@ +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 +} |