Corrected detect docker compose command position
This commit is contained in:
		@@ -344,6 +344,8 @@ while (($#)); do
 | 
				
			|||||||
  shift
 | 
					  shift
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					detect_docker_compose_command
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[ ! -f mailcow.conf ]] && { echo "mailcow.conf is missing! Is mailcow installed?"; exit 1;}
 | 
					[[ ! -f mailcow.conf ]] && { echo "mailcow.conf is missing! Is mailcow installed?"; exit 1;}
 | 
				
			||||||
chmod 600 mailcow.conf
 | 
					chmod 600 mailcow.conf
 | 
				
			||||||
source mailcow.conf
 | 
					source mailcow.conf
 | 
				
			||||||
@@ -354,8 +356,6 @@ if [ ${#DOTS} -lt 2 ]; then
 | 
				
			|||||||
  exit 1
 | 
					  exit 1
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
detect_docker_compose_command
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
if grep --help 2>&1 | head -n 1 | grep -q -i "busybox"; then echo "BusyBox grep detected, please install gnu grep, \"apk add --no-cache --upgrade grep\""; exit 1; fi
 | 
					if grep --help 2>&1 | head -n 1 | grep -q -i "busybox"; then echo "BusyBox grep detected, please install gnu grep, \"apk add --no-cache --upgrade grep\""; exit 1; fi
 | 
				
			||||||
# This will also cover sort
 | 
					# This will also cover sort
 | 
				
			||||||
if cp --help 2>&1 | head -n 1 | grep -q -i "busybox"; then echo "BusyBox cp detected, please install coreutils, \"apk add --no-cache --upgrade coreutils\""; exit 1; fi
 | 
					if cp --help 2>&1 | head -n 1 | grep -q -i "busybox"; then echo "BusyBox cp detected, please install coreutils, \"apk add --no-cache --upgrade coreutils\""; exit 1; fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user