File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## 3.2.6 2022-04-25 <dave at tiredofit dot ca >
2
+
3
+ ### Changed
4
+ - Stop throwing error trying to move blank file if checksums are not enabled
5
+
6
+
1
7
## 3.2.5 2022-04-23 <dave at tiredofit dot ca >
2
8
3
9
### Changed
Original file line number Diff line number Diff line change @@ -560,7 +560,9 @@ move_dbbackup() {
560
560
"file" | "filesystem" )
561
561
print_debug "Moving backup to filesystem"
562
562
mkdir -p "${DB_DUMP_TARGET}"
563
- mv "${TEMP_LOCATION}"/*."${checksum_extension}" "${DB_DUMP_TARGET}"/
563
+ if var_true "${ENABLE_CHECKSUM}" ;then
564
+ mv "${TEMP_LOCATION}"/*."${checksum_extension}" "${DB_DUMP_TARGET}"/
565
+ fi
564
566
mv "${TEMP_LOCATION}"/"${target}" "${DB_DUMP_TARGET}"/"${target}"
565
567
;;
566
568
"s3" | "minio" )
@@ -582,7 +584,9 @@ move_dbbackup() {
582
584
aws ${PARAM_AWS_ENDPOINT_URL} s3 cp ${TEMP_LOCATION}/${target} s3://${S3_BUCKET}/${S3_PATH}/${target} ${s3_ssl} ${s3_ca_cert} ${S3_EXTRA_OPTS}
583
585
unset s3_ssl
584
586
unset s3_ca_cert
585
- rm -rf "${TEMP_LOCATION}"/*."${checksum_extension}"
587
+ if var_true "${ENABLE_CHECKSUM}" ;then
588
+ rm -rf "${TEMP_LOCATION}"/*."${checksum_extension}"
589
+ fi
586
590
rm -rf "${TEMP_LOCATION}"/"${target}"
587
591
;;
588
592
esac
You can’t perform that action at this time.
0 commit comments