1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-05 00:27:25 +00: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

@ -8,20 +8,19 @@ os: linux
dist: bionic dist: bionic
before_install: before_install:
- echo "==== DUMP ENVIRONMENT ====" - echo "==== ENVIRONMENT ===="
- env | sort - env | sort
- echo "UMASK=$(umask)" - echo "UMASK=$(umask)"
# #
- echo "==== DUMP AppArmor Status ====" - echo "==== AppArmor Status ===="
- (sudo aa-status; true) - (sudo aa-status; true)
# #
- echo "==== DUMP NETWORK INFO ====" - echo "==== NETWORK INFO ===="
- hostname -I - hostname -I
- hostname -i - hostname -i
- hostname - hostname
- hostname --fqdn - hostname --fqdn
- ip add - ip add
- cat /etc/hosts
install: install:
- sudo tests/assets/system-setup/remote-nextcloud-docker.sh - sudo tests/assets/system-setup/remote-nextcloud-docker.sh

View File

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

View File

@ -46,9 +46,21 @@ dump_log() {
} }
dump_conf_files() { dump_conf_files() {
dump_log "/etc/mailinabox.conf" local skip
dump_log "/etc/nsd/nsd.conf" if [ $# -eq 0 ]; then
dump_log "/etc/postfix/main.cf" 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() { install_qa_prerequisites() {