mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
parent
05f993ceb8
commit
5298271bfd
|
@ -1,10 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
die () {
|
die () {
|
||||||
echo >&2 "$@"
|
echo "## Configuration error:"
|
||||||
|
echo >&2 "> $@"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Check that hostname/domainname is provided (no default docker hostname)
|
||||||
|
#
|
||||||
|
if ( ! echo $(hostname) | grep -E '^(\S+[.]\S+)$' ); then
|
||||||
|
die "Setting hostname/domainname is required."
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Default variables
|
# Default variables
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#
|
||||||
|
# configuration checks
|
||||||
|
#
|
||||||
|
|
||||||
|
@test "checking configuration: hostname/domainname" {
|
||||||
|
run docker run `docker inspect --format '{{ .Config.Image }}' mail`
|
||||||
|
[ "$status" -eq 1 ]
|
||||||
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# processes
|
# processes
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue