mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-30 18:07:46 +00:00 
			
		
		
		
	Allow to install extra packages (#440)
* Allow to install extra packages The string in line #20 is always zero, we should watch the return value of mkdir. * fix more mkdir checks Co-authored-by: peterfromthehill <peter@1qay.net>
This commit is contained in:
		
							parent
							
								
									8902f73e0e
								
							
						
					
					
						commit
						9a7bca01c7
					
				| @ -32,7 +32,7 @@ if [ "${AUTOCONFIGURE}" == true ]; then | ||||
| 	# Hint: this is not compatible with a read-only container. | ||||
| 	# The general recommendation is to already build a container that has all required packages installed. | ||||
| 	ADDITIONAL_KOPANO_PACKAGES=$(echo "$ADDITIONAL_KOPANO_PACKAGES" | tr -d '"') | ||||
| 	if [ -n "$(mkdir -p "/var/lib/apt/lists/" 2&> /dev/null)" ]; then | ||||
| 	if mkdir -p "/var/lib/apt/lists/" 2&> /dev/null; then | ||||
| 		[ -n "${ADDITIONAL_KOPANO_PACKAGES// }" ] && apt update | ||||
| 		[ -n "${ADDITIONAL_KOPANO_PACKAGES// }" ] && for installpkg in $ADDITIONAL_KOPANO_PACKAGES; do | ||||
| 			# shellcheck disable=SC2016 disable=SC2086 | ||||
|  | ||||
| @ -14,7 +14,7 @@ if [ "${AUTOCONFIGURE}" == true ]; then | ||||
| 	# Hint: this is not compatible with a read-only container. | ||||
| 	# The general recommendation is to already build a container that has all required packages installed. | ||||
| 	ADDITIONAL_KOPANO_PACKAGES=$(echo "$ADDITIONAL_KOPANO_PACKAGES" | tr -d '"') | ||||
| 	if [ -n "$(mkdir -p "/var/lib/apt/lists/" 2&> /dev/null)" ]; then | ||||
| 	if mkdir -p "/var/lib/apt/lists/" 2&> /dev/null; then | ||||
| 		[ -n "${ADDITIONAL_KOPANO_PACKAGES// }" ] && apt update | ||||
| 		[ -n "${ADDITIONAL_KOPANO_PACKAGES// }" ] && for installpkg in $ADDITIONAL_KOPANO_PACKAGES; do | ||||
| 			# shellcheck disable=SC2016 disable=SC2086 | ||||
|  | ||||
| @ -17,7 +17,7 @@ if [ "${AUTOCONFIGURE}" == true ]; then | ||||
| 	# The general recommendation is to already build a container that has all required packages installed. | ||||
| 	ADDITIONAL_KOPANO_PACKAGES="$ADDITIONAL_KOPANO_PACKAGES $ADDITIONAL_KOPANO_WEBAPP_PLUGINS" | ||||
| 	ADDITIONAL_KOPANO_PACKAGES=$(echo "$ADDITIONAL_KOPANO_PACKAGES" | tr -d '"') | ||||
| 	if [ -n "$(mkdir -p "/var/lib/apt/lists/" 2&> /dev/null)" ]; then | ||||
| 	if mkdir -p "/var/lib/apt/lists/" 2&> /dev/null; then | ||||
| 		[ -n "${ADDITIONAL_KOPANO_PACKAGES// }" ] && apt update | ||||
| 		[ -n "${ADDITIONAL_KOPANO_PACKAGES// }" ] && for installpkg in $ADDITIONAL_KOPANO_PACKAGES; do | ||||
| 			# shellcheck disable=SC2016 disable=SC2086 | ||||
|  | ||||
| @ -43,7 +43,7 @@ if [ "${AUTOCONFIGURE}" == true ]; then | ||||
| 	# Hint: this is not compatible with a read-only container. | ||||
| 	# The general recommendation is to already build a container that has all required packages installed. | ||||
| 	ADDITIONAL_KOPANO_PACKAGES=$(echo "$ADDITIONAL_KOPANO_PACKAGES" | tr -d '"') | ||||
| 	if [ -n "$(mkdir -p "/var/lib/apt/lists/" 2&> /dev/null)" ]; then | ||||
| 	if mkdir -p "/var/lib/apt/lists/" 2&> /dev/null; then | ||||
| 		[ -n "${ADDITIONAL_KOPANO_PACKAGES// }" ] && apt update | ||||
| 		[ -n "${ADDITIONAL_KOPANO_PACKAGES// }" ] && for installpkg in $ADDITIONAL_KOPANO_PACKAGES; do | ||||
| 			# shellcheck disable=SC2016 disable=SC2086 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user