瀏覽代碼

Merge branch 'master' into kris/wait_for_required_nginx_files

pull/27/head
jonathan 4 年之前
父節點
當前提交
6fd6bb2227
共有 1 個檔案被更改,包括 10 行新增0 行删除
  1. +10
    -0
      bin/vultr/vultr_delete_ssh_keys.sh

+ 10
- 0
bin/vultr/vultr_delete_ssh_keys.sh 查看文件

@@ -0,0 +1,10 @@
#!/bin/bash
#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
THISDIR=$(cd $(dirname ${0}) && pwd)
VCURL=${THISDIR}/vcurl
for id in $(${VCURL} sshkey/list | jq -r '.[] | select(.name != "chipper / pipper") | .SSHKEYID') ; do
echo "Deleting SSH key: ${id}"
${VCURL} sshkey/destroy -X POST --data 'SSHKEYID='"${id}"'' || echo "Error deleting SSH key: ${id}"
done

Loading…
取消
儲存