mirror of
				https://github.com/mail-in-a-box/mailinabox.git
				synced 2025-10-30 18:50:53 +00:00 
			
		
		
		
	Align nextcloud cron job with recommended settings
This commit is contained in:
		
							parent
							
								
									2f54f39f31
								
							
						
					
					
						commit
						ce8857e4c0
					
				| @ -310,12 +310,15 @@ if grep -q apc.enabled=0 /etc/php/7.2/mods-available/apcu.ini; then | |||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| # Set up a cron job for Nextcloud. | # Set up a cron job for Nextcloud. | ||||||
| cat > /etc/cron.hourly/mailinabox-owncloud << EOF; | cat > /etc/cron.d/mailinabox-nextcloud << EOF; | ||||||
| #!/bin/bash | #!/bin/bash | ||||||
| # Mail-in-a-Box | # Mail-in-a-Box | ||||||
| sudo -u www-data php -f /usr/local/lib/owncloud/cron.php | */5 * * * *	root	sudo -u www-data php -f /usr/local/lib/owncloud/cron.php | ||||||
| EOF | EOF | ||||||
| chmod +x /etc/cron.hourly/mailinabox-owncloud | chmod +x /etc/cron.d/mailinabox-nextcloud | ||||||
|  | 
 | ||||||
|  | # Remove previous hourly cronjob | ||||||
|  | rm -f /etc/cron.hourly/mailinabox-owncloud | ||||||
| 
 | 
 | ||||||
| # There's nothing much of interest that a user could do as an admin for Nextcloud, | # There's nothing much of interest that a user could do as an admin for Nextcloud, | ||||||
| # and there's a lot they could mess up, so we don't make any users admins of Nextcloud. | # and there's a lot they could mess up, so we don't make any users admins of Nextcloud. | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user