mirror of
				https://github.com/mail-in-a-box/mailinabox.git
				synced 2025-10-31 19:00:54 +00:00 
			
		
		
		
	Clear the roundcube temp_dir if upgrading from 1.3.x
This commit is contained in:
		
							parent
							
								
									3d1a1e86fc
								
							
						
					
					
						commit
						1f979f9d8e
					
				| @ -51,6 +51,11 @@ elif [[ "$UPDATE_KEY" != `cat /usr/local/lib/roundcubemail/version` ]]; then | ||||
| 	needs_update=1 #NODOC | ||||
| fi | ||||
| if [ $needs_update == 1 ]; then | ||||
|   # if upgrading from 1.3.x, clear the temp_dir | ||||
|   if [ "$(cat /usr/local/lib/roundcubemail/version | cut -c1-3)" == '1.3' ]; then | ||||
|     find /var/tmp/roundcubemail/ -type f ! -name 'RCMTEMP*' -delete | ||||
|   fi | ||||
| 
 | ||||
| 	# install roundcube | ||||
| 	wget_verify \ | ||||
| 		https://github.com/roundcube/roundcubemail/releases/download/$VERSION/roundcubemail-$VERSION-complete.tar.gz \ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user