Only redirect standard error otherwise the test always fails

This commit is contained in:
Julien Malik 2015-09-03 18:23:14 +02:00
parent 8f4a1533f3
commit 0b5ffbc9a7

View file

@ -121,7 +121,7 @@ set_domain() {
# Configure hostname to yunohost.yunohost.org if not already set
# NOTE: This is done also during postinstall "to avoid amavis bug"
# so we might not need it here
[[ "$(hostname -d > /dev/null 2>&1)" != "" ]] || hostname yunohost.yunohost.org > /dev/null 2>&1
[[ "$(hostname -d 2>/dev/null)" != "" ]] || hostname yunohost.yunohost.org > /dev/null 2>&1
}
confirm_installation() {