mirror of
				https://github.com/mail-in-a-box/mailinabox.git
				synced 2025-10-31 19:00:54 +00:00 
			
		
		
		
	Dump /etc/hosts on travis
This commit is contained in:
		
							parent
							
								
									f4fda41705
								
							
						
					
					
						commit
						64d24566b2
					
				| @ -8,20 +8,19 @@ os: linux | ||||
| dist: bionic | ||||
|    | ||||
| before_install: | ||||
|   - echo "==== DUMP ENVIRONMENT ====" | ||||
|   - echo "==== ENVIRONMENT ====" | ||||
|   - env | sort | ||||
|   - echo "UMASK=$(umask)" | ||||
|   # | ||||
|   - echo "==== DUMP AppArmor Status ====" | ||||
|   - echo "==== AppArmor Status ====" | ||||
|   - (sudo aa-status; true) | ||||
|   # | ||||
|   - echo "==== DUMP NETWORK INFO ====" | ||||
|   - echo "==== NETWORK INFO ====" | ||||
|   - hostname -I | ||||
|   - hostname -i | ||||
|   - hostname | ||||
|   - hostname --fqdn | ||||
|   - ip add | ||||
|   - cat /etc/hosts | ||||
|    | ||||
| install: | ||||
|   - sudo tests/assets/system-setup/remote-nextcloud-docker.sh | ||||
|  | ||||
| @ -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 | ||||
| } | ||||
| 
 | ||||
|  | ||||
| @ -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() { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user