mirror of
				https://github.com/vmstan/gravity-sync.git
				synced 2025-11-04 09:43:01 -05:00 
			
		
		
		
	Output sync direction
This commit is contained in:
		
							parent
							
								
									12151a23b1
								
							
						
					
					
						commit
						c8597d51c2
					
				@ -59,12 +59,15 @@ else
 | 
				
			|||||||
	exit
 | 
						exit
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					echo -e "${CYAN}Evaluating command for sync direction${NC}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
case $# in
 | 
					case $# in
 | 
				
			||||||
   0)
 | 
					   0)
 | 
				
			||||||
	echo -e "${RED}Failure${NC}: ${GRAVITY_FI} replication direction required"
 | 
						echo -e "${RED}Failure${NC}: ${GRAVITY_FI} replication direction required"
 | 
				
			||||||
	echo "Usage: $0 {pull|push}"
 | 
						echo "Usage: $0 {pull|push}"
 | 
				
			||||||
	echo -e "> ${YELLOW}Pull${NC} will copy the ${GRAVITY_FI} configuration on $REMOTE_HOST to this server"
 | 
						echo -e "> ${YELLOW}Pull${NC} will copy the ${GRAVITY_FI} configuration on $REMOTE_HOST to this server"
 | 
				
			||||||
	echo -e "> ${YELLOW}Push${NC} will force any changes made on this server to the primary"
 | 
						echo -e "> ${YELLOW}Push${NC} will force any changes made on this server to the primary"
 | 
				
			||||||
 | 
						echo -e "No changes have been made to the system"
 | 
				
			||||||
      	exit 1
 | 
					      	exit 1
 | 
				
			||||||
	;;
 | 
						;;
 | 
				
			||||||
   1)
 | 
					   1)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user