1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grr_ynh.git synced 2024-09-03 19:15:56 +02:00

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>
This commit is contained in:
YunoHost Bot 2023-09-28 15:22:57 +02:00 committed by GitHub
parent 8adadce339
commit a512bf3787
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 20 deletions

View file

@ -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

View file

@ -19,7 +19,7 @@ Si vous navez 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

View file

@ -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"

View file

@ -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

View file

@ -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
#=================================================