mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-31 02:17:47 +00:00 
			
		
		
		
	Configure Z-Push php_admin_value by env
This commit is contained in:
		
							parent
							
								
									b638f48011
								
							
						
					
					
						commit
						6ece7881dc
					
				| @ -132,6 +132,12 @@ if [ "${AUTOCONFIGURE}" == true ]; then | |||||||
| 	done | 	done | ||||||
| 	echo -e '  );' >> /tmp/z-push/z-push.conf.php | 	echo -e '  );' >> /tmp/z-push/z-push.conf.php | ||||||
| 
 | 
 | ||||||
|  | 	# configuring z-push php_admin_values | ||||||
|  | 	for setting in $(compgen -A variable KCCONF_ZPUSHPHPADMINVALUE_); do | ||||||
|  | 		setting2=${setting#KCCONF_ZPUSHPHPADMINVALUE_} | ||||||
|  | 		perl -i -0pe 's/^\s*php_admin_value\['${setting2,,}'\]\s*=\s*\K.*$/'${!setting}'/mg' /etc/php/7.3/fpm/pool.d/kopano-z-push.conf | ||||||
|  | 	done | ||||||
|  | 
 | ||||||
| 	echo "Ensure config ownership" | 	echo "Ensure config ownership" | ||||||
| 	chown -R www-data:www-data /run/sessions | 	chown -R www-data:www-data /run/sessions | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user