aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-23 20:16:16 +0800
committercrupest <crupest@outlook.com>2022-11-23 20:16:16 +0800
commitb40b2601e7f0a226cc93109bae24ecf887f874c8 (patch)
treeb7fe9750bc5e3176c4c980d707ad5c7e5fe7f380
parentf47f7802424efdbef6006d1e31f9b6840f1f13ab (diff)
downloadcrupest-b40b2601e7f0a226cc93109bae24ecf887f874c8.tar.gz
crupest-b40b2601e7f0a226cc93109bae24ecf887f874c8.tar.bz2
crupest-b40b2601e7f0a226cc93109bae24ecf887f874c8.zip
Fix coscli. v2.0
-rwxr-xr-xdocker/auto-backup/daemon.bash4
-rwxr-xr-xtool/aio.py8
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])