Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/auto_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ function clean_backup() {
if [[ ! ${S3_API_VERSION} == "" ]]; then
api_args="--api ${S3_API_VERSION}"
fi
${S3_CLIENT} ${extra_args} alias set ${alias_name} ${BACKUP_S3_ENDPOINT} ${BACKUP_S3_ID} ${BACKUP_S3_KEY} ${api_args}
${S3_CLIENT} ${extra_args} alias set "${alias_name}" "${BACKUP_S3_ENDPOINT}" "${BACKUP_S3_ID}" "${BACKUP_S3_KEY}" ${api_args}
fi

if [[ "${BACKUP_DATA_PATH_AUTO_TS}" == "no" ]]; then
Expand Down
4 changes: 2 additions & 2 deletions mo_ctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ function main() {
CTL_LOG_FILE=$CTL_LOG_DIR/$(date '+%Y%m%d_%H%M%S')-$(hostname).log
fi
if [ -z "$BACKUP_S3_ID" ] && [ -n "$AWS_ACCESS_KEY_ID" ]; then
eval "BACKUP_S3_ID=$AWS_ACCESS_KEY_ID"
BACKUP_S3_ID="$AWS_ACCESS_KEY_ID"
fi
if [ -z "$BACKUP_S3_KEY" ] && [ -n "$AWS_SECRET_ACCESS_KEY" ]; then
eval "BACKUP_S3_KEY=$AWS_SECRET_ACCESS_KEY"
BACKUP_S3_KEY="$AWS_SECRET_ACCESS_KEY"
fi

case "${option_1}" in
Expand Down
Loading