mirror of
				https://github.com/mail-in-a-box/mailinabox.git
				synced 2025-11-03 19:30:54 +00:00 
			
		
		
		
	Create db dir and copy files instead of nested folder
This commit is contained in:
		
							parent
							
								
									6eff1b04fa
								
							
						
					
					
						commit
						2d34ea9781
					
				@ -250,10 +250,10 @@ tools/editconf.py /etc/default/postgrey \
 | 
				
			|||||||
if [ ! -d $STORAGE_ROOT/mail/postgrey/db ]; then
 | 
					if [ ! -d $STORAGE_ROOT/mail/postgrey/db ]; then
 | 
				
			||||||
	# Stop the service
 | 
						# Stop the service
 | 
				
			||||||
	service postgrey stop
 | 
						service postgrey stop
 | 
				
			||||||
	# Ensure the new base path for postgrey exists
 | 
						# Ensure the new paths for postgrey db exists
 | 
				
			||||||
	mkdir -p $STORAGE_ROOT/mail/postgrey
 | 
						mkdir -p $STORAGE_ROOT/mail/postgrey $STORAGE_ROOT/mail/postgrey/db
 | 
				
			||||||
	# Move over database
 | 
						# Move over database files
 | 
				
			||||||
	mv /var/lib/postgrey $STORAGE_ROOT/mail/postgrey/db
 | 
						mv /var/lib/postgrey/* $STORAGE_ROOT/mail/postgrey/db/ || true
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
# Ensure permissions are set
 | 
					# Ensure permissions are set
 | 
				
			||||||
chown -R postgrey:postgrey $STORAGE_ROOT/mail/postgrey/
 | 
					chown -R postgrey:postgrey $STORAGE_ROOT/mail/postgrey/
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user