diff --git a/README.md b/README.md index e354741..3ea8945 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.6.1 (pre-release)** +Shipped Version: **0.8.1 (pre-release)** **Please note that this app will install PHP 7.2** diff --git a/conf/app.src b/conf/app.src index 1a4dbd2..c0ea0b9 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/kevinpapst/kimai2/archive/0.6.1.tar.gz -SOURCE_SUM=5014e6fc9a9ca0dab4e97ffdb1f549245e52445d027a5ab8998cdfeba73a9ea6 +SOURCE_URL=https://github.com/kevinpapst/kimai2/archive/0.8.1.tar.gz +SOURCE_SUM=6f156bf510f9fec540e49128392dbd2f9f569a2de6d9aed7174e4044bde39b2b SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index ec05db9..4cfe2b0 100644 --- a/manifest.json +++ b/manifest.json @@ -5,9 +5,10 @@ "description": { "en": "Kimai v2 is web based Timetracker: multi-user application for time-tracking with support for mobile devices", "fr": "Kimai v2 est une application web de suivi du temps, multi-utilisateurs, et compatible avec les appareils mobiles", - "de": "Kimai v2 ist eine web-basierte Mehrbenutzer-Zeiterfassung mit Rechnungsdruck mit Unterstützung für mobile Endgeräte" + "de": "Kimai v2 ist eine web-basierte Mehrbenutzer-Zeiterfassung mit Rechnungsdruck mit Unterstützung für mobile Endgeräte", + "cs": "Kimai v2 je víceuživatelská webová aplikace pro sledování času s podporou mobilních zařízení" }, - "version": "0.6.1", + "version": "0.8.1", "url": "https://v2.kimai.org", "license": "MIT", "maintainer": { @@ -32,7 +33,8 @@ "ask": { "en": "Choose a domain name for Kimai2", "fr": "Choisissez un nom de domaine pour Kimai2", - "de": "Wählen Sie einen Domainnamen für Kimai 2" + "de": "Wählen Sie einen Domainnamen für Kimai 2", + "cs": "Zvolte doménu pro Kimai 2" }, "example": "kimai2.example.com" }, @@ -42,7 +44,8 @@ "ask": { "en": "Choose an admin user (should be a YunoHost registered user).", "fr": "Choisissez l’administrateur (should be a YunoHost registered user).", - "de": "Wählen Sie einen Admin Benutzer (sollte ein registrierter YunoHost Benutzer sein)." + "de": "Wählen Sie einen Admin Benutzer (sollte ein registrierter YunoHost Benutzer sein).", + "cs": "Zvolte administrátora (musí to být registrovaný uživatel YunoHostu)." }, "example": "johndoe" }, @@ -51,7 +54,8 @@ "ask": { "en": "Choose the database to use (for production usage choose: mysql)", "fr": "Choisissez le type de base de données à utiliser (mysql pour un usage en production)", - "de": "Wählen Sie die zu nutzende Datenbank (für produktive Zwecke wähle: mysql)" + "de": "Wählen Sie die zu nutzende Datenbank (für produktive Zwecke wähle: mysql)", + "cs": "Zvolte databázi (pro produkční použití vyberte: mysql)" }, "choices": ["mysql","sqlite"], "default": "mysql" @@ -62,7 +66,8 @@ "ask": { "en": "Are new users allowed to register ?", "fr": "Est-ce que de nouveaux utilisateurs peuvent s'y inscrire ?", - "de": "Sollen sich neue Benutzer selber registrieren können ?" + "de": "Sollen sich neue Benutzer selber registrieren können ?", + "cs": "Mohou se noví uživatelé registrovat?" }, "default": false }, @@ -72,7 +77,8 @@ "ask": { "en": "Is it a public application?", "fr": "Est-ce une application publique ?", - "de": "Ist dies eine öffentliche Applikation?" + "de": "Ist dies eine öffentliche Applikation?", + "cs": "Je tato aplikace veřejná?" }, "default": true } diff --git a/scripts/upgrade b/scripts/upgrade index 3fd173f..052f3eb 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -77,6 +77,9 @@ ynh_install_php7 # Download, check integrity, uncompress and patch the source from app.src and do required installation for update +# version before upgrade +old_ver=`sudo yunohost app info $app --output-as plain | ynh_get_plain_key version` + #version check for 0.3 version=`cd /var/www/$app && bin/console kimai:version --short 2> /dev/null || sed -n 's/^future-release=//p' .github_changelog_generator` @@ -152,6 +155,17 @@ 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 -n + +# convert-timezone script has a problem running non-interactively (-n) on 0.8.1 +# fix it here +sed -i "s/, \$amount));/, \$amount), 'y');/" /var/www/$app/src/Command/ConvertTimezoneCommand.php + +# call convert-timezone script when upgrading from < 0.8 verions +# fixes timezone issue: https://github.com/kevinpapst/kimai2/pull/372 +if `dpkg --compare-versions $old_ver "lt" "0.8"` +then + cd $final_path && sudo /usr/bin/php7.2 bin/console kimai:convert-timezone -n +fi ) #================================================= # NGINX CONFIGURATION