1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kimai2_ynh.git synced 2024-09-03 19:26:26 +02:00
* Upgrade to v2.19.1 (#109)

* Upgrade sources
- `main` v2.19.1: https://github.com/kevinpapst/kimai2/releases/tag/2.19.1

* Auto-update READMEs

* Update manifest.toml (#107)

Upgrade php to v8.3

* Update manifest.toml

* Auto-update READMEs

* Update backup

* cleaning

---------

Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
Co-authored-by: CodeShakingSheep <19874562+CodeShakingSheep@users.noreply.github.com>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>
This commit is contained in:
eric_G 2024-07-30 11:35:48 +02:00 committed by GitHub
parent 27283bdfec
commit 36dd96a3ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 24 additions and 39 deletions

View file

@ -19,7 +19,7 @@ It shall NOT be edited by hand.
Kimai v2 has nothing in common with its predecessor Kimai v1 besides the basic ideas of time-tracking and the current development team. It is based on a lot of great frameworks. Special thanks to Symfony v4, Doctrine, AdminThemeBundle (based on AdminLTE). Kimai v2 has nothing in common with its predecessor Kimai v1 besides the basic ideas of time-tracking and the current development team. It is based on a lot of great frameworks. Special thanks to Symfony v4, Doctrine, AdminThemeBundle (based on AdminLTE).
**Shipped version:** 2.19.1~ynh1 **Shipped version:** 2.19.1~ynh2
**Demo:** <https://www.kimai.org/demo/> **Demo:** <https://www.kimai.org/demo/>

View file

@ -19,7 +19,7 @@ No se debe editar a mano.
Kimai v2 has nothing in common with its predecessor Kimai v1 besides the basic ideas of time-tracking and the current development team. It is based on a lot of great frameworks. Special thanks to Symfony v4, Doctrine, AdminThemeBundle (based on AdminLTE). Kimai v2 has nothing in common with its predecessor Kimai v1 besides the basic ideas of time-tracking and the current development team. It is based on a lot of great frameworks. Special thanks to Symfony v4, Doctrine, AdminThemeBundle (based on AdminLTE).
**Versión actual:** 2.19.1~ynh1 **Versión actual:** 2.19.1~ynh2
**Demo:** <https://www.kimai.org/demo/> **Demo:** <https://www.kimai.org/demo/>

View file

@ -19,7 +19,7 @@ EZ editatu eskuz.
Kimai v2 has nothing in common with its predecessor Kimai v1 besides the basic ideas of time-tracking and the current development team. It is based on a lot of great frameworks. Special thanks to Symfony v4, Doctrine, AdminThemeBundle (based on AdminLTE). Kimai v2 has nothing in common with its predecessor Kimai v1 besides the basic ideas of time-tracking and the current development team. It is based on a lot of great frameworks. Special thanks to Symfony v4, Doctrine, AdminThemeBundle (based on AdminLTE).
**Paketatutako bertsioa:** 2.19.1~ynh1 **Paketatutako bertsioa:** 2.19.1~ynh2
**Demoa:** <https://www.kimai.org/demo/> **Demoa:** <https://www.kimai.org/demo/>

View file

@ -19,7 +19,7 @@ Il NE doit PAS être modifié à la main.
Kimai v2 has nothing in common with its predecessor Kimai v1 besides the basic ideas of time-tracking and the current development team. It is based on a lot of great frameworks. Special thanks to Symfony v4, Doctrine, AdminThemeBundle (based on AdminLTE). Kimai v2 has nothing in common with its predecessor Kimai v1 besides the basic ideas of time-tracking and the current development team. It is based on a lot of great frameworks. Special thanks to Symfony v4, Doctrine, AdminThemeBundle (based on AdminLTE).
**Version incluse:** 2.19.1~ynh1 **Version incluse:** 2.19.1~ynh2
**Démo:** <https://www.kimai.org/demo/> **Démo:** <https://www.kimai.org/demo/>

View file

@ -19,7 +19,7 @@ NON debe editarse manualmente.
Kimai v2 has nothing in common with its predecessor Kimai v1 besides the basic ideas of time-tracking and the current development team. It is based on a lot of great frameworks. Special thanks to Symfony v4, Doctrine, AdminThemeBundle (based on AdminLTE). Kimai v2 has nothing in common with its predecessor Kimai v1 besides the basic ideas of time-tracking and the current development team. It is based on a lot of great frameworks. Special thanks to Symfony v4, Doctrine, AdminThemeBundle (based on AdminLTE).
**Versión proporcionada:** 2.19.1~ynh1 **Versión proporcionada:** 2.19.1~ynh2
**Demo:** <https://www.kimai.org/demo/> **Demo:** <https://www.kimai.org/demo/>

View file

@ -19,7 +19,7 @@ Ini TIDAK boleh diedit dengan tangan.
Kimai v2 has nothing in common with its predecessor Kimai v1 besides the basic ideas of time-tracking and the current development team. It is based on a lot of great frameworks. Special thanks to Symfony v4, Doctrine, AdminThemeBundle (based on AdminLTE). Kimai v2 has nothing in common with its predecessor Kimai v1 besides the basic ideas of time-tracking and the current development team. It is based on a lot of great frameworks. Special thanks to Symfony v4, Doctrine, AdminThemeBundle (based on AdminLTE).
**Versi terkirim:** 2.19.1~ynh1 **Versi terkirim:** 2.19.1~ynh2
**Demo:** <https://www.kimai.org/demo/> **Demo:** <https://www.kimai.org/demo/>

View file

@ -19,7 +19,7 @@
Kimai v2 has nothing in common with its predecessor Kimai v1 besides the basic ideas of time-tracking and the current development team. It is based on a lot of great frameworks. Special thanks to Symfony v4, Doctrine, AdminThemeBundle (based on AdminLTE). Kimai v2 has nothing in common with its predecessor Kimai v1 besides the basic ideas of time-tracking and the current development team. It is based on a lot of great frameworks. Special thanks to Symfony v4, Doctrine, AdminThemeBundle (based on AdminLTE).
**分发版本:** 2.19.1~ynh1 **分发版本:** 2.19.1~ynh2
**演示:** <https://www.kimai.org/demo/> **演示:** <https://www.kimai.org/demo/>

View file

@ -9,7 +9,7 @@ description.fr = "Application multi-utilisateurs de suivi du temps compatible av
description.de = "Eine web-basierte Mehrbenutzer-Zeiterfassung mit Rechnungsdruck mit Unterstützung für mobile Endgeräte" description.de = "Eine web-basierte Mehrbenutzer-Zeiterfassung mit Rechnungsdruck mit Unterstützung für mobile Endgeräte"
description.cs = "Víceuživatelská webová aplikace pro sledování času s podporou mobilních zařízení" description.cs = "Víceuživatelská webová aplikace pro sledování času s podporou mobilních zařízení"
version = "2.19.1~ynh1" version = "2.19.1~ynh2"
maintainers = [] maintainers = []
@ -77,17 +77,17 @@ ram.runtime = "80M"
[resources.apt] [resources.apt]
packages = [ packages = [
"php8.2-gd", "php8.3-gd",
"php8.2-intl", "php8.3-intl",
"php8.2-json", "php8.3-json",
"php8.2-mbstring", "php8.3-mbstring",
"php8.2-pdo", "php8.3-pdo",
"php8.2-zip", "php8.3-zip",
"php8.2-xml", "php8.3-xml",
"php8.2-xsl", "php8.3-xsl",
"php8.2-ldap", "php8.3-ldap",
"php8.2-mysql", "php8.3-mysql",
"php8.2-sqlite3", "php8.3-sqlite3",
"mariadb-server", "mariadb-server",
] ]

View file

@ -32,11 +32,9 @@ ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
#================================================= #=================================================
# BACKUP THE MYSQL DATABASE # BACKUP THE MYSQL DATABASE
#================================================= #=================================================
ynh_print_info --message="Backing up the MySQL database..."
if [ "$database" = "mysql" ]; then ynh_mysql_dump_db --database="$db_name" > db.sql
ynh_print_info --message="Backing up the MySQL database..."
ynh_mysql_dump_db --database="$db_name" > db.sql
fi
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT

View file

@ -13,9 +13,6 @@ source /usr/share/yunohost/helpers
# INITIALIZE AND STORE SETTINGS # INITIALIZE AND STORE SETTINGS
#================================================= #=================================================
database="mysql"
ynh_app_setting_set --app="$app" --key=database --value="$database"
random_key=$(ynh_string_random --length=32) random_key=$(ynh_string_random --length=32)
ynh_app_setting_set --app="$app" --key=random_key --value="$random_key" ynh_app_setting_set --app="$app" --key=random_key --value="$random_key"

View file

@ -27,10 +27,9 @@ setfacl -R -m g:"www-data":rwX -m u:"$app":rwX "$install_dir/var/"
#================================================= #=================================================
# RESTORE THE MYSQL DATABASE # RESTORE THE MYSQL DATABASE
#================================================= #=================================================
if [ "$database" = "mysql" ]; then ynh_script_progression --message="Restoring the MySQL database..." --weight=1
ynh_script_progression --message="Restoring the MySQL database..." --weight=1
ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" < ./db.sql ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" < ./db.sql
fi
#================================================= #=================================================
# RESTORE SYSTEM CONFIGURATIONS # RESTORE SYSTEM CONFIGURATIONS

View file

@ -14,15 +14,6 @@ source /usr/share/yunohost/helpers
#================================================= #=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
if [ "$database" == "sqlite" ]; then
ynh_script_progression --message="Sqlite is not supported by Kimai2 anymore..."
ynh_script_progression --message="Kimai2 will be upgraded to last available version : 1.13"
if ynh_compare_current_package_version --comparison ge --version 1.17.1~ynh1; then
ynh_script_progression --message="Kimai2 sqlite version is already to the last available version, no upgrade will be made"
ynh_die --message="" 0
fi
fi
if [ -z "${registration:-}" ]; then if [ -z "${registration:-}" ]; then
registration=0 registration=0
ynh_app_setting_set --app="$app" --key=registration --value="$registration" ynh_app_setting_set --app="$app" --key=registration --value="$registration"