mirror of
https://github.com/YunoHost-Apps/moodle_ynh.git
synced 2024-09-03 19:46:23 +02:00
Update upgrade
This commit is contained in:
parent
3203ee41bc
commit
7e256f1902
1 changed files with 5 additions and 5 deletions
|
@ -27,30 +27,30 @@ ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If the admin is not defined, We can't upgrade this app
|
# If the admin is not defined, We can't upgrade this app
|
||||||
if [ -z "$admin" ]; then
|
if [ -z "${admin:-}" ]; then
|
||||||
ynh_die --message="This app can't be upgraded from a very old version of the package. Please remove and reinstall Moodle"
|
ynh_die --message="This app can't be upgraded from a very old version of the package. Please remove and reinstall Moodle"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If the site_name is not defined
|
# If the site_name is not defined
|
||||||
if [ -z "$site_name" ]; then
|
if [ -z "${site_name:-}" ]; then
|
||||||
site_name="YunoHost"
|
site_name="YunoHost"
|
||||||
ynh_app_setting_set --app=$app --key=site_name --value=$site_name
|
ynh_app_setting_set --app=$app --key=site_name --value=$site_name
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If fpm_footprint doesn't exist, create it
|
# If fpm_footprint doesn't exist, create it
|
||||||
if [ -z "$fpm_footprint" ]; then
|
if [ -z "${fpm_footprint:-}" ]; then
|
||||||
fpm_footprint=low
|
fpm_footprint=low
|
||||||
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint
|
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If fpm_free_footprint doesn't exist, create it
|
# If fpm_free_footprint doesn't exist, create it
|
||||||
if [ -z "$fpm_free_footprint" ]; then
|
if [ -z "${fpm_free_footprint:-}" ]; then
|
||||||
fpm_free_footprint=0
|
fpm_free_footprint=0
|
||||||
ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint
|
ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If fpm_usage doesn't exist, create it
|
# If fpm_usage doesn't exist, create it
|
||||||
if [ -z "$fpm_usage" ]; then
|
if [ -z "${fpm_usage:-}" ]; then
|
||||||
fpm_usage=low
|
fpm_usage=low
|
||||||
ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
|
ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue