修改文件名

This commit is contained in:
vincent
2024-05-15 22:12:03 +08:00
parent 3a84f89286
commit 401e6d1075
2 changed files with 1 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
# Save keys to key.txt
xray x25519 > ../conf/key.txt
private_key=$(grep "Private key" ../conf/key.txt | awk -F ': ' '{print $2}')
# 修改config.json密钥属性
jq ".inbounds[0].streamSettings.realitySettings.privateKey=\"$private_key\"" ../conf/config.json > ../conf/config_temp.json
mv ../conf/config_temp.json ../conf/config.json
echo "生成和设置密钥成功."