mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	iiab-update: Try "bash -e" (exit on error) and "cp -u" (--update)
This commit is contained in:
		
							parent
							
								
									280cea8b9d
								
							
						
					
					
						commit
						291c049919
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
#!/bin/bash
 | 
			
		||||
#!/bin/bash -e
 | 
			
		||||
# "-e" tries to exit right away on error.
 | 
			
		||||
 | 
			
		||||
# Upgrade IIAB core software (apt updates, Ansible, Admin Console, etc).
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -40,7 +41,7 @@
 | 
			
		|||
    if [[ $1 == "-f" || $1 == "--fast" ]]; then    # Otherwise ./runrole does it below! (as Ansible runs roles/0-init)
 | 
			
		||||
        cd scripts
 | 
			
		||||
        echo -e "\n\e[4mNow running: cp iiab-update iiab-summary iiab-diagnostics /usr/bin\e[0m\n"
 | 
			
		||||
        cp iiab-update iiab-summary iiab-diagnostics /usr/bin
 | 
			
		||||
        cp -u iiab-update iiab-summary iiab-diagnostics /usr/bin
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
    if [[ $1 == "-f" || $1 == "--fast" ]]; then
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue