1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

Dump /etc/hosts on travis

This commit is contained in:
downtownallday
2020-06-10 07:49:17 -04:00
parent f4fda41705
commit 64d24566b2
3 changed files with 20 additions and 9 deletions

View File

@@ -104,12 +104,12 @@ miab_install() {
if ! setup/start.sh; then
H1 "OUTPUT OF SELECT FILES"
dump_log "/var/log/syslog" 100
dump_conf_files
dump_conf_files "$TRAVIS"
H2; H2 "End"; H2
die "setup/start.sh failed!"
fi
H1 "OUTPUT OF SELECT FILES"
dump_conf_files
dump_conf_files "$TRAVIS"
H2; H2 "End"; H2
}

View File

@@ -46,9 +46,21 @@ dump_log() {
}
dump_conf_files() {
dump_log "/etc/mailinabox.conf"
dump_log "/etc/nsd/nsd.conf"
dump_log "/etc/postfix/main.cf"
local skip
if [ $# -eq 0 ]; then
skip="false"
else
skip="true"
for item; do
[ "$item" == "true" ] skip="false"
done
fi
if [ "$skip" == "false" ]; then
dump_log "/etc/mailinabox.conf"
dump_log "/etc/hosts"
dump_log "/etc/nsd/nsd.conf"
dump_log "/etc/postfix/main.cf"
fi
}
install_qa_prerequisites() {