From eebb96322eea5174aa45e6f9c34f3d0a4490bd6a Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 22 Dec 2021 12:14:00 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 573c96b..faf7a22 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -64,6 +64,7 @@ fi # If new datadir doesn't exist, create it if [ -z "/home/yunohost.app/$app" ]; then datadir=/home/yunohost.app/$app + mkdir -p $datadir ynh_app_setting_set --app=$app --key=datadir --value=$datadir cp -a "/home/$app/repositories" "$datadir/data/repositories" @@ -105,7 +106,7 @@ ynh_script_progression --message="Setting up source files..." --weight=3 ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source --dest_dir=$final_path --source_id="$architecture" #--keep="$final_path/custom/conf/app.ini $final_path/custom/conf/auth.d/ldap.conf" +ynh_setup_source --dest_dir=$final_path --source_id="$architecture" chmod 750 "$final_path" chmod -R o-rwx "$final_path" @@ -114,6 +115,7 @@ chown -R $app:www-data "$final_path" #================================================= # MODIFY A CONFIG FILE #================================================= +ynh_script_progression --message="Setting up source config files..." --weight=3 if [ "$path_url" = "/" ] then