mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	iiab-install can use faster code if /etc/iiab/config_vars2.yml exists
This commit is contained in:
		
							parent
							
								
									07a30132b6
								
							
						
					
					
						commit
						0fd9a9ac52
					
				
					 1 changed files with 15 additions and 0 deletions
				
			
		
							
								
								
									
										15
									
								
								iiab-install
									
										
									
									
									
								
							
							
						
						
									
										15
									
								
								iiab-install
									
										
									
									
									
								
							|  | @ -138,6 +138,7 @@ if [ -f /etc/iiab/iiab.env ]; then | |||
|         echo -e "Use './iiab-install --debug' to run Stage 0, followed by Stages 3-9." | ||||
|         echo -e "Use './runrole' to run a single Stage or Role." | ||||
|         echo -e "Use './iiab-network' to run Network sections.\n\n" | ||||
|         echo -e "Use './iiab-configure' to turn installed service on|off via local_vars.yml.\n\n" | ||||
|         exit 0    # allows rerunning http://download.iiab.io/6.7/install.txt | ||||
|     fi | ||||
| fi | ||||
|  | @ -145,6 +146,20 @@ if [ "$STAGE" -lt 2 ] && [ "$1" == "--debug" ]; then | |||
|     echo -e "\n'--debug' *ignored* as STAGE (counter) < 2." | ||||
| fi | ||||
| 
 | ||||
| if [ -f $APPS ]; then | ||||
|     if grep -q sugar $APPS; then | ||||
|         if ! grep -q mongodb $APPS; then | ||||
|             echo "mongodb_installed: True" >> $APPS | ||||
|     fi | ||||
| 
 | ||||
|     if [ "$STAGE" -eq 2 ]; then | ||||
|         echo -e "\n completing stage 3 from iiab image" | ||||
|         systemctl start iiab-setup-db | ||||
|     fi | ||||
|     PLAYBOOK="iiab-from-console.yml" | ||||
|     ARGS="" | ||||
| fi | ||||
| 
 | ||||
| echo -e "\nTRY TO RERUN './iiab-install' IF IT FAILS DUE TO CONNECTIVITY ISSUES ETC!\n" | ||||
| 
 | ||||
| echo -e "Running local playbooks....Stage 0 will now run....followed by Stages $(($STAGE + 1))-9" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue