mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-31 10:27:14 +00:00 
			
		
		
		
	do not upgrade dependencies when installing additional dependencies (#151)
this would otherwise alter other files in the image (e.g. upgrade z-push from 2.4.5 to 2.5.0). the more sustainable approach is to bake additional packages directly into the container by building an own through the makefile. Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
		
							parent
							
								
									124eb25513
								
							
						
					
					
						commit
						0f98176282
					
				| @ -14,7 +14,7 @@ fi | ||||
| [ -n "${ADDITIONAL_KOPANO_PACKAGES// }" ] && for installpkg in $ADDITIONAL_KOPANO_PACKAGES; do | ||||
| 	# shellcheck disable=SC2016 disable=SC2086 | ||||
| 	if [ "$(dpkg-query -W -f='${Status}' $installpkg 2>/dev/null | grep -c 'ok installed')" -eq 0 ]; then | ||||
| 		apt --assume-yes install "$installpkg" | ||||
| 		apt --assume-yes --no-upgrade install "$installpkg" | ||||
| 	fi | ||||
| done | ||||
| 
 | ||||
|  | ||||
| @ -17,7 +17,7 @@ ADDITIONAL_KOPANO_PACKAGES="$ADDITIONAL_KOPANO_PACKAGES $ADDITIONAL_KOPANO_WEBAP | ||||
| [ -n "${ADDITIONAL_KOPANO_PACKAGES// }" ] && for installpkg in $ADDITIONAL_KOPANO_PACKAGES; do | ||||
| 	# shellcheck disable=SC2016 disable=SC2086 | ||||
| 	if [ "$(dpkg-query -W -f='${Status}' $installpkg 2>/dev/null | grep -c 'ok installed')" -eq 0 ]; then | ||||
| 		apt --assume-yes install "$installpkg" | ||||
| 		apt --assume-yes --no-upgrade install "$installpkg" | ||||
| 	fi | ||||
| done | ||||
| 
 | ||||
|  | ||||
| @ -41,7 +41,7 @@ php_cfg_gen() { | ||||
| [ -n "${ADDITIONAL_KOPANO_PACKAGES// }" ] && for installpkg in $ADDITIONAL_KOPANO_PACKAGES; do | ||||
| 	# shellcheck disable=SC2016 disable=SC2086 | ||||
| 	if [ "$(dpkg-query -W -f='${Status}' $installpkg 2>/dev/null | grep -c 'ok installed')" -eq 0 ]; then | ||||
| 		apt --assume-yes install "$installpkg" | ||||
| 		apt --assume-yes --no-upgrade install "$installpkg" | ||||
| 	fi | ||||
| done | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user