mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Only calculate checksums, when there are files to monitor. (#2776)
This commit is contained in:
parent
6113b99881
commit
1f137f3eca
|
@ -73,5 +73,9 @@ function _monitored_files_checksums
|
||||||
do
|
do
|
||||||
[[ -f "${FILE}" ]] && CHANGED_FILES+=("${FILE}")
|
[[ -f "${FILE}" ]] && CHANGED_FILES+=("${FILE}")
|
||||||
done
|
done
|
||||||
sha512sum -- "${CHANGED_FILES[@]}"
|
|
||||||
|
if [[ -n ${CHANGED_FILES:-} ]]
|
||||||
|
then
|
||||||
|
sha512sum -- "${CHANGED_FILES[@]}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
load 'test_helper/common'
|
load 'test_helper/common'
|
||||||
|
|
||||||
function setup_file() {
|
function setup_file() {
|
||||||
local PRIVATE_CONFIG
|
|
||||||
PRIVATE_CONFIG=$(duplicate_config_for_container .)
|
|
||||||
|
|
||||||
docker run --rm -d --name mail_smtponly \
|
docker run --rm -d --name mail_smtponly \
|
||||||
-v "${PRIVATE_CONFIG}":/tmp/docker-mailserver \
|
|
||||||
-v "$(pwd)/test/test-files":/tmp/docker-mailserver-test:ro \
|
-v "$(pwd)/test/test-files":/tmp/docker-mailserver-test:ro \
|
||||||
-e SMTP_ONLY=1 \
|
-e SMTP_ONLY=1 \
|
||||||
-e PERMIT_DOCKER=network \
|
-e PERMIT_DOCKER=network \
|
||||||
|
|
Loading…
Reference in a new issue