diff --git a/scripts/install b/scripts/install index 6a7a672..5a89c69 100755 --- a/scripts/install +++ b/scripts/install @@ -35,7 +35,7 @@ app=$YNH_APP_INSTANCE_NAME #================================================= ynh_script_progression --message="Validating installation parameters..." --weight=1 -final_path=/opt/yunohost/$app +final_path=/var/www/$app test ! -e "$final_path" || ynh_die --message="This path already contains a folder" # Register (book) web path diff --git a/scripts/upgrade b/scripts/upgrade index 25994c6..24a2846 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -63,7 +63,8 @@ fi # If final_path doesn't exist, create it if [ -z "$final_path" ]; then - final_path=/opt/yunohost/$app + final_path=/var/www/$app + mkdir -p $final_path ynh_app_setting_set --app=$app --key=final_path --value=$final_path fi