mirror of
				https://github.com/mail-in-a-box/mailinabox.git
				synced 2025-10-29 18:40:53 +00:00 
			
		
		
		
	z-push hack for php 8.0: change a debug print statement and make a policies.ini change
This commit is contained in:
		
							parent
							
								
									9783b8bbbc
								
							
						
					
					
						commit
						cc0a6d25cb
					
				| @ -45,6 +45,15 @@ if [ $needs_update == 1 ]; then | ||||
| 	echo $VERSION > /usr/local/lib/z-push/version | ||||
| fi | ||||
| 
 | ||||
| # HACK z-push for php 8.0 | ||||
| # see: https://github.com/mail-in-a-box/mailinabox/pull/2083#issuecomment-1237232402 | ||||
| if [ "$PHP_VER" = "8.0" ]; then | ||||
|     # change a z-push source code logging line so it doesn't print the mutexid or memid, which cause an exception ("Uncaught Error: Object of class SysvSemaphore could not be converted to string in /usr/local/lib/z-push/backend/ipcsharedmemory/ipcsharedmemoryprovider.php:45" | ||||
|     sed -i 's/\(Initialized mutexid\) %s\( and memid\) %s/\1\2/' /usr/local/lib/z-push/backend/ipcsharedmemory/ipcsharedmemoryprovider.php | ||||
|     # change the default value of maxattsize from '' to -1 in policies.ini | ||||
|     tools/editconf.py /usr/local/lib/z-push/policies.ini -ini-section default -c ';' maxattsize=-1 | ||||
| fi | ||||
| 
 | ||||
| # Configure default config. | ||||
| sed -i "s^define('TIMEZONE', .*^define('TIMEZONE', '$(cat /etc/timezone)');^" /usr/local/lib/z-push/config.php | ||||
| sed -i "s/define('BACKEND_PROVIDER', .*/define('BACKEND_PROVIDER', 'BackendCombined');/" /usr/local/lib/z-push/config.php | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user