mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Merge pull request #3771 from holta/iiab-update2
iiab-update: minor refinements for safety + usability
This commit is contained in:
		
						commit
						5debb5e650
					
				
					 1 changed files with 4 additions and 3 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).
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -39,8 +40,8 @@
 | 
			
		|||
    git pull https://github.com/iiab/iiab --no-rebase --no-edit
 | 
			
		||||
    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
 | 
			
		||||
        echo -e "\n\e[4mNow running: cp -u iiab-update iiab-summary iiab-diagnostics /usr/bin\e[0m\n"
 | 
			
		||||
        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