diff --git a/README.md b/README.md index 8f9fe9f..8597754 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Integration level](https://dash.yunohost.org/integration/kimai2.svg)](https://ci-apps.yunohost.org/jenkins/job/kimai2%20%28Community%29/lastBuild/consoleFull) [![Install kimai2 with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=kimai2)
-Shipped Version: **0.3 (pre-release)** +Shipped Version: **0.4 (pre-release)** **Please note that this app will install PHP 7.2** diff --git a/conf/app.src b/conf/app.src index 913e8c2..1adfde7 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/kevinpapst/kimai2/archive/0.3.tar.gz -SOURCE_SUM=87e1b544c4483e4c11cf96fa44aca9bd71fac3a168155cd10b9922ab22e92678 +SOURCE_URL=https://github.com/kevinpapst/kimai2/archive/0.4.tar.gz +SOURCE_SUM=2bfe446b5aeca3facfc2903cad4ca33fe04e8e71e45c1ecfe31669b08d31afe1 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index 2954d88..ec75a73 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Kimai2 package for YunoHost.", "fr": "Kimai2 de package d’application pour YunoHost." }, - "version": "0.3", + "version": "0.4", "url": "https://v2.kimai.org", "license": "free", "maintainer": { diff --git a/scripts/_common.sh b/scripts/_common.sh index 9c5ee6e..2c79b44 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -95,7 +95,7 @@ init_composer() { || ynh_die "Unable to install Composer" # update dependencies to create composer.lock - exec_composer "$DESTDIR" install --no-dev --prefer-dist --no-scripts \ + exec_composer "$DESTDIR" install --no-dev --optimize-autoloader \ || ynh_die "Unable to update Kimai2 core dependencies" } diff --git a/scripts/upgrade b/scripts/upgrade index 36c388e..0e874b7 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -76,7 +76,10 @@ ynh_install_php7 # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source "$final_path" - +init_composer $final_path +cd $final_path && sudo /usr/bin/php7.2 bin/console cache:clear --env=prod +cd $final_path && sudo /usr/bin/php7.2 bin/console cache:warmup --env=prod +cd $final_path && sudo /usr/bin/php7.2 bin/console doctrine:migrations:migrate #================================================= # NGINX CONFIGURATION #=================================================