mirror of
				https://github.com/YunoHost-Apps/send_ynh.git
				synced 2025-11-04 07:45:30 +01:00 
			
		
		
		
	add config panel
This commit is contained in:
		@@ -3,6 +3,31 @@
 | 
			
		||||
source _common.sh
 | 
			
		||||
source /usr/share/yunohost/helpers
 | 
			
		||||
 | 
			
		||||
#=================================================
 | 
			
		||||
# ENSURE DOWNWARD COMPATIBILITY
 | 
			
		||||
#=================================================
 | 
			
		||||
ynh_script_progression "Ensuring downward compatibility..."
 | 
			
		||||
 | 
			
		||||
if [ -z ${custom_title:-} ]; then
 | 
			
		||||
	custom_title=Send
 | 
			
		||||
    ynh_app_setting_set --key=custom_title --value="$custom_title"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -z ${custom_description:-} ]; then
 | 
			
		||||
	custom_description="Encrypt and send files with a link that automatically expires to ensure your important documents don’t stay online forever."
 | 
			
		||||
    ynh_app_setting_set --key=custom_description --value="$custom_description"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -z ${max_file_size:-} ]; then
 | 
			
		||||
	max_file_size="2684354560"
 | 
			
		||||
	ynh_app_setting_set --key=cmax_file_size --value="$max_file_size"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ -z ${max_download:-} ]; then
 | 
			
		||||
	max_download="100"
 | 
			
		||||
	ynh_app_setting_set --key=max_download --value="$max_download"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
#=================================================
 | 
			
		||||
# STOP SYSTEMD SERVICE
 | 
			
		||||
#=================================================
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user