diff --git a/scripts/install b/scripts/install index 81837ff..95a091d 100644 --- a/scripts/install +++ b/scripts/install @@ -156,7 +156,7 @@ mkdir -p "$final_path/app/sites/default/files/tmp" #================================================= # CREATE DATA DIRECTORY #================================================= -ynh_script_progression --message="Creating a data directory..." --time --weight=1 +ynh_script_progression --message="Creating a data directory..." datadir=/home/yunohost.app/$app ynh_app_setting_set --app=$app --key=datadir --value=$datadir diff --git a/scripts/restore b/scripts/restore index ea4d445..6178f45 100644 --- a/scripts/restore +++ b/scripts/restore @@ -76,7 +76,7 @@ chmod 2775 "$final_path/app/sites/default/files" #================================================= # RESTORE THE DATA DIRECTORY #================================================= -ynh_script_progression --message="Restoring the data directory..." --time --weight=1 +ynh_script_progression --message="Restoring the data directory..." ynh_restore_file --origin_path="$datadir" --not_mandatory diff --git a/scripts/upgrade b/scripts/upgrade index 45e8c6f..ba496e9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -134,7 +134,7 @@ ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencie #================================================= # CREATE DATA DIRECTORY #================================================= -ynh_script_progression --message="Creating a data directory..." --time --weight=1 +ynh_script_progression --message="Creating a data directory..." mkdir -p $datadir chmod 750 "$datadir"