add config panel

This commit is contained in:
Éric Gaspar
2024-11-07 09:26:42 +01:00
parent 8e5ef1a4b3
commit e50cf3a545
4 changed files with 86 additions and 3 deletions

View File

@ -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 dont 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
#=================================================