diff options
author | crupest <crupest@outlook.com> | 2022-11-23 20:16:16 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-23 20:16:16 +0800 |
commit | b40b2601e7f0a226cc93109bae24ecf887f874c8 (patch) | |
tree | b7fe9750bc5e3176c4c980d707ad5c7e5fe7f380 | |
parent | f47f7802424efdbef6006d1e31f9b6840f1f13ab (diff) | |
download | crupest-b40b2601e7f0a226cc93109bae24ecf887f874c8.tar.gz crupest-b40b2601e7f0a226cc93109bae24ecf887f874c8.tar.bz2 crupest-b40b2601e7f0a226cc93109bae24ecf887f874c8.zip |
Fix coscli. v2.0
-rwxr-xr-x | docker/auto-backup/daemon.bash | 4 | ||||
-rwxr-xr-x | tool/aio.py | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/docker/auto-backup/daemon.bash b/docker/auto-backup/daemon.bash index c2b91f9..6c6dc19 100755 --- a/docker/auto-backup/daemon.bash +++ b/docker/auto-backup/daemon.bash @@ -15,8 +15,8 @@ xz --version tar --version # do not echo next command -/coscli set --secret_id "${CRUPEST_AUTO_BACKUP_COS_SECRET_ID}" --secret_key "${CRUPEST_AUTO_BACKUP_COS_SECRET_KEY}" -/coscli add --alias "crupest-backup" --bucket "${CRUPEST_AUTO_BACKUP_BUCKET_NAME}" --region "${CRUPEST_AUTO_BACKUP_COS_REGION}" +/coscli config set --secret_id "${CRUPEST_AUTO_BACKUP_COS_SECRET_ID}" --secret_key "${CRUPEST_AUTO_BACKUP_COS_SECRET_KEY}" +/coscli config add --alias "crupest-backup" --bucket "${CRUPEST_AUTO_BACKUP_BUCKET_NAME}" --region "${CRUPEST_AUTO_BACKUP_COS_REGION}" function backup { # Output "Begin backup..." in yellow and restore default diff --git a/tool/aio.py b/tool/aio.py index 687ef40..a487228 100755 --- a/tool/aio.py +++ b/tool/aio.py @@ -303,13 +303,13 @@ config_var_list: list = [ ConfigVar("CRUPEST_IN_CHINA", "set to true if you are in China, some network optimization will be applied", lambda: "false"), ConfigVar("CRUPEST_AUTO_BACKUP_COS_SECRET_ID", - "access key id for Tencent COS, used for auto backup", "Please input your Tencent COS access key id for backup:"), + "access key id for Tencent COS, used for auto backup", "Please input your Tencent COS access key id for backup"), ConfigVar("CRUPEST_AUTO_BACKUP_COS_SECRET_KEY", - "access key secret for Tencent COS, used for auto backup", "Please input your Tencent COS access key for backup:"), + "access key secret for Tencent COS, used for auto backup", "Please input your Tencent COS access key for backup"), ConfigVar("CRUPEST_AUTO_BACKUP_COS_REGION", - "region for Tencent COS, used for auto backup", "Please input your Tencent COS region for backup:", "ap-hongkong"), + "region for Tencent COS, used for auto backup", "Please input your Tencent COS region for backup", "ap-hongkong"), ConfigVar("CRUPEST_AUTO_BACKUP_BUCKET_NAME", - "bucket name for Tencent COS, used for auto backup", "Please input your Tencent COS bucket name for backup:") + "bucket name for Tencent COS, used for auto backup", "Please input your Tencent COS bucket name for backup") ] config_var_name_set = set([config_var.name for config_var in config_var_list]) |