diff --git a/README.md b/README.md index 6e21ac2..f9d67d9 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Create and email invoices, track payments, expenses, and time tasks -**Shipped version:** 5.4.12~ynh1 +**Shipped version:** 5.5.2~ynh1 **Demo:** https://app.invoiceninja.com/dashboard diff --git a/README_fr.md b/README_fr.md index 208a9cf..131a22a 100644 --- a/README_fr.md +++ b/README_fr.md @@ -17,7 +17,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Créer et envoyer des factures par e-mail, suivre les paiements, les dépenses et les tâches horaires -**Version incluse :** 5.4.12~ynh1 +**Version incluse :** 5.5.2~ynh1 **Démo :** https://app.invoiceninja.com/dashboard diff --git a/conf/app.src b/conf/app.src index a5b9a9c..955244d 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/invoiceninja/invoiceninja/releases/download/v5.4.12/invoiceninja.zip -SOURCE_SUM=0426a014d26b0aa6102c454412e04c04092b8ed8dc65c236a78b4ef5e9d1e577 +SOURCE_URL=https://github.com/invoiceninja/invoiceninja/releases/download/v5.5.2/invoiceninja.zip +SOURCE_SUM=64647f6960b64ac42633b65c6b8c108544e2dc845117d3c9f921792474df4ef9 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=zip SOURCE_IN_SUBDIR=false diff --git a/manifest.json b/manifest.json index fdaa033..a03e68a 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Create and email invoices, track payments, expenses, and time tasks", "fr": "Créer et envoyer des factures par e-mail, suivre les paiements, les dépenses et les tâches horaires" }, - "version": "5.4.12~ynh1", + "version": "5.5.2~ynh1", "url": "https://invoiceninja.org", "upstream": { "license": "Elastic-2.0", diff --git a/scripts/upgrade b/scripts/upgrade index 4307400..0d98727 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -21,7 +21,7 @@ path_url=$(ynh_app_setting_get --app=$app --key=path) admin=$(ynh_app_setting_get --app=$app --key=admin) final_path=$(ynh_app_setting_get --app=$app --key=final_path) language=$(ynh_app_setting_get --app=$app --key=language) -phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) +phpversion=$YNH_PHP_VERSION db_name=$(ynh_app_setting_get --app=$app --key=db_name) db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) @@ -133,9 +133,15 @@ ynh_script_progression --message="Upgrading the database..." pushd "$final_path" # Clear caches # https://github.com/invoiceninja/invoiceninja/issues/7397 - ynh_secure_remove --file=bootstrap/cache/* - ynh_secure_remove --file=storage/framework/cache/* - ynh_secure_remove --file=storage/framework/sessions/* + ynh_secure_remove --file=$final_path/bootstrap/cache/ + ynh_secure_remove --file=$final_path/storage/framework/cache/ + ynh_secure_remove --file=$final_path/storage/framework/sessions/ + + mkdir -p $final_path/bootstrap/cache/ $final_path/storage/framework/cache/ $final_path/storage/framework/sessions/ + + # clear cached stuff under /app/data/storage/framework (https://github.com/laravel/framework/issues/17377) + php$phpversion artisan view:clear + php$phpversion artisan cache:clear # Run the database migrations php$phpversion artisan migrate --force --no-interaction --verbose