新增雄安空能院项目
This commit is contained in:
19
66-202505-浙江二级监管/已有部署备份/install_auth.sh
Normal file
19
66-202505-浙江二级监管/已有部署备份/install_auth.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
scp -P 2202 /root/wdd/install/auth_file.json root@192.168.10.2:/data/nfs_data/zjejpt-uas-nfs-backend-log-pvc-pvc-6712a14b-2a03-48d6-9349-42b4642be91e/zjejpt-uas/cmii-uav-watchdog/
|
||||
|
||||
ssh -p 2202 root@192.168.10.2 "ls /data/nfs_data/zjejpt-uas-nfs-backend-log-pvc-pvc-6712a14b-2a03-48d6-9349-42b4642be91e/zjejpt-uas/cmii-uav-watchdog"
|
||||
|
||||
|
||||
# 生成授权文件
|
||||
curl http://localhost:8080/api/authorization/generate
|
||||
|
||||
# 处理授权码
|
||||
curl -X POST \
|
||||
http://localhost:8080/api/authorization/auth \
|
||||
-H 'Content-Type: application/json' \
|
||||
--data-binary @auth_file.json
|
||||
|
||||
|
||||
#
|
||||
curl http://localhost:8080/api/authorization/hosts
|
||||
Reference in New Issue
Block a user