From a512bf3787b8d319b26e771df2dfebe190dda1a5 Mon Sep 17 00:00:00 2001 From: YunoHost Bot Date: Thu, 28 Sep 2023 15:22:57 +0200 Subject: [PATCH] Upgrade to v4.1.1 (#9) * Upgrade to v4.1.1 * Auto-update README * Update upgrade * Update manifest.toml * Update upgrade * Update manifest.toml * Update upgrade * Update install * Update install * Update upgrade --------- Co-authored-by: Tagada <36127788+Tagadda@users.noreply.github.com> --- README.md | 2 +- README_fr.md | 2 +- manifest.toml | 8 ++++---- scripts/install | 12 ++++++------ scripts/upgrade | 17 +++++++++-------- 5 files changed, 21 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index b51fca6..1bef151 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in GRR is a resource reservation management system (rooms, equipment, vehicle, staff) but it can also be used as a shared mini-diary. Developed in php and responsive, which allows it to be accessible, from anywhere and on any type of equipment (PC, Mac, tablet, phone, TV...). -**Shipped version:** 3.5.1~ynh1 +**Shipped version:** 4.1.1~ynh1 ## Screenshots diff --git a/README_fr.md b/README_fr.md index 166a028..92c8e66 100644 --- a/README_fr.md +++ b/README_fr.md @@ -19,7 +19,7 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po GRR est un système de gestion de réservation de ressources (salles, équipements, véhicule, personnels) mais il peut également être utilisé comme mini-agenda partagé. Développé en php et en responsive, ce qui lui permet d'être accessible, de n'importe où et sur tout type d'équipement (PC, Mac, tablette, téléphone, TV...). -**Version incluse :** 3.5.1~ynh1 +**Version incluse :** 4.1.1~ynh1 ## Captures d’écran diff --git a/manifest.toml b/manifest.toml index 8d380c6..ab3b277 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,7 +5,7 @@ name = "Grr" description.en = "Tool for booking meeting rooms or other resources" description.fr = "Outil de réservation de salles de réunion ou d'autres ressources" -version = "3.5.1~ynh1" +version = "4.1.1~ynh1" maintainers = ["Sébastien Menentrier"] @@ -46,8 +46,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://github.com/JeromeDevome/GRR/archive/refs/tags/v3.5.1.tar.gz" - sha256 = "7c0f341e961b61a16905f6d7c2f296e7166313f5a309999a380fbacf26e1d9a6" + url = "https://github.com/JeromeDevome/GRR/archive/refs/tags/v4.1.1.tar.gz" + sha256 = "e6197c33db025510237d6fd5b823dac452c7f5d2a2dc72e548ad840b3b7ba122" autoupdate.strategy = "latest_github_tag" [resources.system_user] @@ -58,7 +58,7 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "mariadb-server, php8.2-ldap, php8.2-gd, php8.2-mbstring, php8.2-mysqli, php8.2-mysqlnd, php8.2-xml" + packages = "mariadb-server, php8.2-ldap, php8.2-gd, php8.2-mbstring, php8.2-mysqli, php8.2-mysqlnd, php8.2-xml, php8.2-intl" [resources.database] type = "mysql" diff --git a/scripts/install b/scripts/install index 03ef57d..71d6974 100755 --- a/scripts/install +++ b/scripts/install @@ -35,13 +35,13 @@ ynh_add_fpm_config #================================================= ynh_script_progression --message="Adding a configuration file..." --weight=1 -ynh_add_config --template="config_ldap.inc.php" --destination="$install_dir/include/config_ldap.inc.php" -ynh_add_config --template="connect.inc.php" --destination="$install_dir/include/connect.inc.php" +ynh_add_config --template="config_ldap.inc.php" --destination="$install_dir/personnalisation/config_ldap.inc.php" +ynh_add_config --template="connect.inc.php" --destination="$install_dir/personnalisation/connect.inc.php" -chmod 400 "$install_dir/include/config_ldap.inc.php" -chmod 400 "$install_dir/include/connect.inc.php" -chown $app:$app "$install_dir/include/config_ldap.inc.php" -chown $app:$app "$install_dir/include/connect.inc.php" +chmod 400 "$install_dir/personnalisation/config_ldap.inc.php" +chmod 400 "$install_dir/personnalisation/connect.inc.php" +chown $app:$app "$install_dir/personnalisation/config_ldap.inc.php" +chown $app:$app "$install_dir/personnalisation/connect.inc.php" mysql --default-character-set=latin1 -u $db_user -p${db_pwd} $db_name < $install_dir/installation/tables.my.sql diff --git a/scripts/upgrade b/scripts/upgrade index 992cc56..5bc18cf 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -46,21 +46,22 @@ ynh_add_fpm_config #================================================= ynh_script_progression --message="Updating a configuration file..." --weight=1 -ynh_add_config --template="config_ldap.inc.php" --destination="$install_dir/include/config_ldap.inc.php" -ynh_add_config --template="connect.inc.php" --destination="$install_dir/include/connect.inc.php" +ynh_add_config --template="config_ldap.inc.php" --destination="$install_dir/personnalisation/config_ldap.inc.php" +ynh_add_config --template="connect.inc.php" --destination="$install_dir/personnalisation/connect.inc.php" -chmod 400 "$install_dir/include/config_ldap.inc.php" -chmod 400 "$install_dir/include/connect.inc.php" -chown $app:$app "$install_dir/include/config_ldap.inc.php" -chown $app:$app "$install_dir/include/connect.inc.php" +chmod 400 "$install_dir/personnalisation/config_ldap.inc.php" +chmod 400 "$install_dir/personnalisation/connect.inc.php" +chown $app:$app "$install_dir/personnalisation/config_ldap.inc.php" +chown $app:$app "$install_dir/personnalisation/connect.inc.php" #================================================= # UPDATE DATABASE #================================================= ynh_script_progression --message="Updating database..." --weight=1 -pushd $install_dir/admin - php${phpversion} admin_maj.php "" +pushd $install_dir/installation + ynh_write_var_in_file --file="$install_dir/installation/maj.php" --key="majscript" --value=true + php${phpversion} maj.php "" popd #=================================================