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
commita0b7748ac5f559314ffb56a2169c5ee901ef7596 (patch)
treeb7fe9750bc5e3176c4c980d707ad5c7e5fe7f380
parent14c2bc9dd999c0dc83f741eab773f99d51177e1a (diff)
downloadcrupest-a0b7748ac5f559314ffb56a2169c5ee901ef7596.tar.gz
crupest-a0b7748ac5f559314ffb56a2169c5ee901ef7596.tar.bz2
crupest-a0b7748ac5f559314ffb56a2169c5ee901ef7596.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])