| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -2,13 +2,6 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#=================================================
 | 
					 | 
					 | 
					 | 
					#=================================================
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# GENERIC START
 | 
					 | 
					 | 
					 | 
					# GENERIC START
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#=================================================
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# MANAGE SCRIPT FAILURE
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#=================================================
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# Exit on command errors and treat access to unset variables as an error
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					set -eu
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#=================================================
 | 
					 | 
					 | 
					 | 
					#=================================================
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# IMPORT GENERIC HELPERS
 | 
					 | 
					 | 
					 | 
					# IMPORT GENERIC HELPERS
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#=================================================
 | 
					 | 
					 | 
					 | 
					#=================================================
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -21,6 +14,13 @@ fi
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					source _common.sh
 | 
					 | 
					 | 
					 | 
					source _common.sh
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					source /usr/share/yunohost/helpers
 | 
					 | 
					 | 
					 | 
					source /usr/share/yunohost/helpers
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					#=================================================
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					# MANAGE SCRIPT FAILURE
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					#=================================================
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					# Exit if an error occurs during the execution of the script
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					ynh_abort_if_errors
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#=================================================
 | 
					 | 
					 | 
					 | 
					#=================================================
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# LOAD SETTINGS
 | 
					 | 
					 | 
					 | 
					# LOAD SETTINGS
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#=================================================
 | 
					 | 
					 | 
					 | 
					#=================================================
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -113,7 +113,7 @@ systemctl enable $app.service
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					ynh_restore_file "/etc/cron.d/$app"
 | 
					 | 
					 | 
					 | 
					ynh_restore_file "/etc/cron.d/$app"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#=================================================
 | 
					 | 
					 | 
					 | 
					#=================================================
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					# BACKUP THE LOGROTATE CONFIGURATION
 | 
					 | 
					 | 
					 | 
					# RESTORE THE LOGROTATE CONFIGURATION
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					#=================================================
 | 
					 | 
					 | 
					 | 
					#=================================================
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					ynh_restore_file "/etc/logrotate.d/$app"
 | 
					 | 
					 | 
					 | 
					ynh_restore_file "/etc/logrotate.d/$app"
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |