1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rocketchat_ynh.git synced 2024-09-03 20:16:25 +02:00

Merge pull request #189 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2023-09-01 16:31:43 +02:00 committed by GitHub
commit 2312a40a0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 56 additions and 56 deletions

View file

@ -26,7 +26,7 @@ Rocket.Chat is an open-source fully customizable communications platform develop
- Mobile Apps for [iOS](https://apps.apple.com/app/rocket-chat/id1148741252) and [Android](https://play.google.com/store/apps/details?id=chat.rocket.android)
- Desktop Apps for [macOS](https://apps.apple.com/br/app/rocket-chat/id1086818840), [Linux](https://snapcraft.io/rocketchat-desktop) and [Windows](https://releases.rocket.chat/desktop/latest/download)
**Shipped version:** 6.3.1~ynh1
**Shipped version:** 6.3.3~ynh1
**Demo:** https://cloud.rocket.chat/trial

View file

@ -26,7 +26,7 @@ Rocket.Chat est une plate-forme de communication open source entièrement person
- Applications mobiles pour [iOS](https://apps.apple.com/app/rocket-chat/id1148741252) et [Android](https://play.google.com/store/apps/details?id=chat.rocket.android)
- Applications de bureau pour [macOS](https://apps.apple.com/br/app/rocket-chat/id1086818840), [Linux](https://snapcraft.io/rocketchat-desktop) et [Windows](https://releases.rocket.chat/desktop/latest/download)
**Version incluse :** 6.3.1~ynh1
**Version incluse :** 6.3.3~ynh1
**Démo :** https://cloud.rocket.chat/trial

View file

@ -13,7 +13,7 @@ ExecStart=__YNH_NODE__ __INSTALL_DIR__/main.js
SyslogIdentifier=__APP__
Environment=MONGO_URL=mongodb://localhost:27017/__APP__?replicaSet=rs01
Environment=MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01
Environment=ROOT_URL=https://__DOMAIN____PATH__
Environment=ROOT_URL=https://__DOMAIN__
Environment=PORT=__PORT__
Environment=ADMIN_USERNAME="__ADMIN__"
Environment=ADMIN_PASS="__PASSWORD__"

View file

@ -7,12 +7,6 @@ To enable E-mail for address verification, go to Rocket.Chat Administration pane
- Port: `25`
- From -mail: `rocketchat@domain.tld`
### Configure and activate federation for Rocket.Chat
https://support.indie.host/help/fr-fr/13/40
### Mobile Apps
In addition to the web interface, you can also download Rocket.Chat clients for:

View file

@ -7,12 +7,6 @@ Pour activer l'e-mail pour la vérification des adresses, accédez au panneau d'
- Port : `25`
- De l'e-mail : `rocketchat@domain.tld`
### Configurer et activer la fédération pour Rocket.Chat
https://support.indie.host/help/fr-fr/13/40
### Applications Mobiles
En plus de l'interface Web, vous pouvez également télécharger les clients Rocket.Chat pour :

View file

@ -5,7 +5,7 @@ name = "Rocket.Chat"
description.en = "Team collaboration communication platform"
description.fr = "Plateforme de communication collaborative en équipe"
version = "6.3.1~ynh1"
version = "6.3.3~ynh1"
maintainers = ["eric_G"]
@ -31,10 +31,6 @@ ram.runtime = "50M"
[install.domain]
type = "domain"
[install.path]
type = "path"
default = "/rocketchat"
[install.init_main_permission]
help.en = "You must activate 'Visitors' if you want to connect a Mobile or desktop client to Rocket.Chat. This can be changed later via the webadmin."
help.fr = "Vous devez activer 'Visiteurs' si vous souhaitez connecter un client mobile ou desktop à Rocket.Chat. Vous pourrez changer ceci plus tard via la webadmin."
@ -51,8 +47,8 @@ ram.runtime = "50M"
[resources.sources]
[resources.sources.main]
url = "https://releases.rocket.chat/6.3.1/download"
sha256 = "81d51303f0f6ff57c95b7ff84524cb2d46a0382d6d1177fe8b72556eaf401111"
url = "https://releases.rocket.chat/6.3.3/download"
sha256 = "fa3647e1e8ca9c8ec12e6fc32903a82d2fe4fd18efc4c0580576c924510c9444"
in_subdir = true
extract = true
rename = "rocket.chat.tgz"

View file

@ -30,7 +30,7 @@ ynh_change_url_nginx_config
#=================================================
ynh_script_progression --message="Updating systemd service..." --weight=1
ynh_replace_string --match_string="Environment=ROOT_URL=https://$old_domain$old_path" --replace_string="Environment=ROOT_URL=https://$new_domain$new_path" --target_file="/etc/systemd/system/$app.service"
ynh_replace_string --match_string="Environment=ROOT_URL=https://$old_domain" --replace_string="Environment=ROOT_URL=https://$new_domain" --target_file="/etc/systemd/system/$app.service"
systemctl daemon-reload
#=================================================

View file

@ -73,9 +73,9 @@ if ynh_exec_warn_less ynh_mongo_exec --command="printjson(rs.status())" | grep -
fi
#=================================================
# SETUP SYSTEMD
# SYSTEM CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring a systemd service..." --weight=1
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
# Create a dedicated NGINX config
ynh_add_nginx_config
@ -85,7 +85,7 @@ ynh_add_systemd_config
# Use logrotate to manage application logfile(s)
ynh_use_logrotate
yunohost service add $app --description="Team collaboration communication platform"
yunohost service add $app --description="Team collaboration communication platform" --log="/var/log/$app/$app.log"
#==============================================
# INSTALL ROCKETCHAT

View file

@ -18,10 +18,11 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$db_name
#=================================================
# STANDARD REMOVE
# REMOVE SYSTEM CONFIGURATIONS
#=================================================
# REMOVE SERVICE INTEGRATION IN YUNOHOST
# REMOVE SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_exec_warn_less yunohost service status $app >/dev/null
@ -60,7 +61,12 @@ ynh_systemd_action --service_name=mongod --action=restart --log_path=/var/log/mo
# Remove a database if it exists, along with the associated user
ynh_mongo_remove_db --db_user=$db_user --db_name=$db_name
ynh_remove_mongo
#ynh_remove_mongo
# Remove mongod service
yunohost service remove mongod
ynh_secure_remove --file="/var/lib/mongodb"
ynh_secure_remove --file="/var/log/mongodb"
#=================================================
# END OF SCRIPT

View file

@ -64,9 +64,11 @@ if ynh_exec_warn_less ynh_mongo_exec --command="printjson(rs.status())" | grep -
fi
#=================================================
# RESTORE SYSTEMD
# RESTORE SYSTEM CONFIGURATIONS
#=================================================
ynh_script_progression --message="Restoring the systemd configuration..." --weight=1
# RESTORE THE PHP-FPM CONFIGURATION
#=================================================
ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
@ -75,12 +77,14 @@ systemctl enable $app.service --quiet
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
yunohost service add $app --description="Team collaboration communication platform"
yunohost service add $app --description="Team collaboration communication platform" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE
# GENERIC FINALIZATION
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=19
# RELOAD NGINX AND PHP-FPM OR THE APP SERVICE
#=================================================
ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="SERVER RUNNING"

View file

@ -97,9 +97,9 @@ pushd $install_dir/programs/server
popd
#=================================================
# SETUP SYSTEMD
# REAPPLY SYSTEM CONFIGURATIONS
#=================================================
ynh_script_progression --message="Upgrading systemd configuration..." --weight=2
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
# Create a dedicated NGINX config
ynh_add_nginx_config
@ -110,7 +110,7 @@ ynh_add_systemd_config
# Use logrotate to manage app-specific logfile(s)
ynh_use_logrotate --non-append
yunohost service add $app --description="Team collaboration communication platform"
yunohost service add $app --description="Team collaboration communication platform" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE

View file

@ -2,9 +2,15 @@ test_format = 1.0
[default]
# ------------
# Tests to run
# ------------
exclude = ["install.subdir"]
# -------------------------------
# Commits to test upgrade from
# -------------------------------
test_upgrade_from.8c5ad8d9.name = "Upgrade from 5.4.3"
test_upgrade_from.ca35dcf1205733c8cf94cb2dc32a9c899ae93d1d.name = "Upgrade from 6.3.1~ynh1"