commit 34ab62778db61eeed568190a61df142c04e50d62
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2026-06-27T03:05:32Z |
| subject | Moved keystore into private bucket |
commit 34ab62778db61eeed568190a61df142c04e50d62
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2026-06-27T03:05:32Z
Moved keystore into private bucket
---
bash/sources/16_keystore | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/bash/sources/16_keystore b/bash/sources/16_keystore
index 9c28cf7..7df093e 100644
--- a/bash/sources/16_keystore
+++ b/bash/sources/16_keystore
@@ -527,16 +527,20 @@ function _kstoredownload-db {
local _T _DOMAIN _URL _TMP _CONFIRM
kstore secret config || return 1
- _DOMAIN="penguins-workspace.s3.ap-southeast-1.astropenguin.net"
+ which arch-download-aws4 2>&1 > /dev/null
+ if [ $? -ne 0 ]; then
+ _kstoreinit-s3au
+ fi
- _T=$( rbash_download "https://$_DOMAIN/keystore/latest" )
+ _T=$( arch-download-aws4 "keystore/latest" )
if [ $? -ne 0 ]; then
return 1
fi
_TMP=$( mktemp )
- rbash_download "https://$_DOMAIN/keystore/$_T.enc" | _kstoredec > $_TMP
+ arch-download-aws4 "keystore/$_T.enc" | _kstoredec > $_TMP
if [ $? -ne 0 ]; then
+ echo "Incorrect bucket? ($ARCH_S3_BUCKET_URL)" >&2
return 1
fi