mirror of
https://github.com/YunoHost-Apps/element_ynh.git
synced 2024-09-03 18:36:08 +02:00
Merge pull request #171 from YunoHost-Apps/testing
Automated testing -> master
This commit is contained in:
commit
74fca8bc36
16 changed files with 67 additions and 127 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
*~
|
||||
~.sw[op]
|
||||
.DS_Store
|
|
@ -5,7 +5,7 @@ It shall NOT be edited by hand.
|
|||
|
||||
# Element for YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/element)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/element/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=element)
|
||||
|
||||
|
@ -18,7 +18,7 @@ It shall NOT be edited by hand.
|
|||
|
||||
Element is a new type of messaging app. You choose where your messages are stored, putting you in control of your data. It gives you access to the Matrix open network, so you can talk to anyone. Element provides a new level of security, adding cross-signed device verification to default end-to-end encryption.
|
||||
|
||||
**Shipped version:** 1.11.69~ynh1
|
||||
**Shipped version:** 1.11.70~ynh1
|
||||
|
||||
**Demo:** <https://app.element.io/>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ No se debe editar a mano.
|
|||
|
||||
# Element para Yunohost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/element)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/element/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=element)
|
||||
|
||||
|
@ -18,7 +18,7 @@ No se debe editar a mano.
|
|||
|
||||
Element is a new type of messaging app. You choose where your messages are stored, putting you in control of your data. It gives you access to the Matrix open network, so you can talk to anyone. Element provides a new level of security, adding cross-signed device verification to default end-to-end encryption.
|
||||
|
||||
**Versión actual:** 1.11.69~ynh1
|
||||
**Versión actual:** 1.11.70~ynh1
|
||||
|
||||
**Demo:** <https://app.element.io/>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ EZ editatu eskuz.
|
|||
|
||||
# Element YunoHost-erako
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/element)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/element/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=element)
|
||||
|
||||
|
@ -18,7 +18,7 @@ EZ editatu eskuz.
|
|||
|
||||
Element is a new type of messaging app. You choose where your messages are stored, putting you in control of your data. It gives you access to the Matrix open network, so you can talk to anyone. Element provides a new level of security, adding cross-signed device verification to default end-to-end encryption.
|
||||
|
||||
**Paketatutako bertsioa:** 1.11.69~ynh1
|
||||
**Paketatutako bertsioa:** 1.11.70~ynh1
|
||||
|
||||
**Demoa:** <https://app.element.io/>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ Il NE doit PAS être modifié à la main.
|
|||
|
||||
# Element pour YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/element)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/element/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=element)
|
||||
|
||||
|
@ -18,7 +18,7 @@ Il NE doit PAS être modifié à la main.
|
|||
|
||||
Element est un nouveau type d'application de messagerie. Vous choisissez où vos messages sont stockés, ce qui vous donne le contrôle de vos données. Il vous donne accès au réseau ouvert Matrix, vous pouvez donc parler à n'importe qui. Element offre un nouveau niveau de sécurité, en ajoutant la vérification des appareils par signature croisée au chiffrement de bout en bout par défaut.
|
||||
|
||||
**Version incluse :** 1.11.69~ynh1
|
||||
**Version incluse :** 1.11.70~ynh1
|
||||
|
||||
**Démo :** <https://app.element.io/>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ NON debe editarse manualmente.
|
|||
|
||||
# Element para YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/element)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/element/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=element)
|
||||
|
||||
|
@ -18,7 +18,7 @@ NON debe editarse manualmente.
|
|||
|
||||
Element is a new type of messaging app. You choose where your messages are stored, putting you in control of your data. It gives you access to the Matrix open network, so you can talk to anyone. Element provides a new level of security, adding cross-signed device verification to default end-to-end encryption.
|
||||
|
||||
**Versión proporcionada:** 1.11.69~ynh1
|
||||
**Versión proporcionada:** 1.11.70~ynh1
|
||||
|
||||
**Demo:** <https://app.element.io/>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
# YunoHost 上的 Element
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/element)  
|
||||
[](https://ci-apps.yunohost.org/ci/apps/element/)  
|
||||
|
||||
[](https://install-app.yunohost.org/?app=element)
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
|||
|
||||
Element is a new type of messaging app. You choose where your messages are stored, putting you in control of your data. It gives you access to the Matrix open network, so you can talk to anyone. Element provides a new level of security, adding cross-signed device verification to default end-to-end encryption.
|
||||
|
||||
**分发版本:** 1.11.69~ynh1
|
||||
**分发版本:** 1.11.70~ynh1
|
||||
|
||||
**演示:** <https://app.element.io/>
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ name = "Element"
|
|||
description.en = "Web client for Matrix"
|
||||
description.fr = "Client web pour Matrix"
|
||||
|
||||
version = "1.11.69~ynh1"
|
||||
version = "1.11.70~ynh1"
|
||||
|
||||
maintainers = ["Josué Tille"]
|
||||
|
||||
|
@ -18,7 +18,8 @@ code = "https://github.com/element-hq/element-web"
|
|||
cpe = "cpe:2.3:a:matrix:element"
|
||||
|
||||
[integration]
|
||||
yunohost = ">= 11.2"
|
||||
yunohost = ">= 11.2.20"
|
||||
helpers_version = "2.1"
|
||||
architectures = "all"
|
||||
multi_instance = true
|
||||
|
||||
|
@ -56,8 +57,8 @@ ram.runtime = "0M"
|
|||
[resources.sources]
|
||||
|
||||
[resources.sources.main]
|
||||
url = "https://github.com/element-hq/element-web/releases/download/v1.11.69/element-v1.11.69.tar.gz"
|
||||
sha256 = "378a72551461717545ee04624773c2fe77c6c83213b6a15f7ddf6acb8ed5b31a"
|
||||
url = "https://github.com/element-hq/element-web/releases/download/v1.11.70/element-v1.11.70.tar.gz"
|
||||
sha256 = "ab5fa83233b79a6baa5fea3592169d8476c779c48eb71a1f6bd7c4111f39f55e"
|
||||
autoupdate.strategy = "latest_github_release"
|
||||
autoupdate.asset = "^element-v.*.tar.gz$"
|
||||
|
||||
|
|
|
@ -1,24 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
#=================================================
|
||||
# COMMON VARIABLES
|
||||
#=================================================
|
||||
|
||||
#=================================================
|
||||
# PERSONAL HELPERS
|
||||
# COMMON VARIABLES AND CUSTOM HELPERS
|
||||
#=================================================
|
||||
|
||||
configure_element()
|
||||
{
|
||||
ynh_add_config --template="config.json" --destination="$install_dir/config.json"
|
||||
ynh_config_add --template="config.json" --destination="$install_dir/config.json"
|
||||
chmod -R u=rwX,g=rX,o= "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
}
|
||||
|
||||
#=================================================
|
||||
# EXPERIMENTAL HELPERS
|
||||
#=================================================
|
||||
|
||||
#=================================================
|
||||
# FUTURE OFFICIAL HELPERS
|
||||
#=================================================
|
||||
|
|
|
@ -1,34 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
#=================================================
|
||||
# GENERIC START
|
||||
#=================================================
|
||||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
|
||||
source ../settings/scripts/_common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# DECLARE DATA AND CONF FILES TO BACKUP
|
||||
#=================================================
|
||||
ynh_print_info --message="Declaring files to be backed up..."
|
||||
ynh_print_info "Declaring files to be backed up..."
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE APP MAIN DIR
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="$install_dir"
|
||||
ynh_backup "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
||||
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
||||
ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."
|
||||
ynh_print_info "Backup script completed for $app. (YunoHost will then actually copy those files to the archive)."
|
||||
|
|
|
@ -1,22 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
#=================================================
|
||||
# GENERIC STARTING
|
||||
#=================================================
|
||||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# MODIFY URL IN NGINX CONF
|
||||
#=================================================
|
||||
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1
|
||||
ynh_script_progression "Updating NGINX web server configuration..."
|
||||
|
||||
ynh_change_url_nginx_config
|
||||
ynh_config_change_url_nginx
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression --message="Change of URL completed for $app" --last
|
||||
ynh_script_progression "Change of URL completed for $app"
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
#=================================================
|
||||
# GENERIC START
|
||||
#=================================================
|
||||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
source ./_common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
|
@ -14,8 +8,6 @@ ynh_app_config_apply() {
|
|||
configure_element
|
||||
}
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
#=================================================
|
||||
# SELECT THE ACTION FOLLOWING THE GIVEN ARGUMENT
|
||||
#=================================================
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
#=================================================
|
||||
# GENERIC START
|
||||
#=================================================
|
||||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
|
@ -22,35 +16,33 @@ default_federate=true
|
|||
default_theme=light
|
||||
show_labs_settings=false
|
||||
|
||||
ynh_app_setting_set --app=$app --key=disable_custom_urls --value=$disable_custom_urls
|
||||
ynh_app_setting_set --app=$app --key=disable_guests --value=$disable_guests
|
||||
ynh_app_setting_set --app=$app --key=disable_3pid_login --value=$disable_3pid_login
|
||||
ynh_app_setting_set --app=$app --key=default_country_code --value=$default_country_code
|
||||
ynh_app_setting_set --app=$app --key=brand_text --value=$brand_text
|
||||
ynh_app_setting_set --app=$app --key=default_federate --value=$default_federate
|
||||
ynh_app_setting_set --app=$app --key=default_theme --value=$default_theme
|
||||
ynh_app_setting_set --app=$app --key=show_labs_settings --value=$show_labs_settings
|
||||
ynh_app_setting_set --key=disable_custom_urls --value=$disable_custom_urls
|
||||
ynh_app_setting_set --key=disable_guests --value=$disable_guests
|
||||
ynh_app_setting_set --key=disable_3pid_login --value=$disable_3pid_login
|
||||
ynh_app_setting_set --key=default_country_code --value=$default_country_code
|
||||
ynh_app_setting_set --key=brand_text --value=$brand_text
|
||||
ynh_app_setting_set --key=default_federate --value=$default_federate
|
||||
ynh_app_setting_set --key=default_theme --value=$default_theme
|
||||
ynh_app_setting_set --key=show_labs_settings --value=$show_labs_settings
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Setting up source files..." --weight=4
|
||||
ynh_script_progression "Setting up source files..."
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
|
||||
#=================================================
|
||||
# SYSTEM CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
|
||||
ynh_script_progression "Adding system configurations related to $app..."
|
||||
|
||||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
ynh_config_add_nginx
|
||||
|
||||
#=================================================
|
||||
# ADD A CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
ynh_script_progression "Adding $app's configuration..."
|
||||
|
||||
configure_element
|
||||
|
||||
|
@ -58,4 +50,4 @@ configure_element
|
|||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression --message="Installation of $app completed" --last
|
||||
ynh_script_progression "Installation of $app completed"
|
||||
|
|
|
@ -1,24 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
#=================================================
|
||||
# GENERIC START
|
||||
#=================================================
|
||||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# REMOVE SYSTEM CONFIGURATIONS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Removing system configurations related to $app..." --weight=1
|
||||
ynh_script_progression "Removing system configurations related to $app..."
|
||||
|
||||
# Remove the dedicated NGINX config
|
||||
ynh_remove_nginx_config
|
||||
ynh_config_remove_nginx
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression --message="Removal of $app completed" --last
|
||||
ynh_script_progression "Removal of $app completed"
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
#=================================================
|
||||
# GENERIC START
|
||||
#=================================================
|
||||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
|
||||
source ../settings/scripts/_common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
@ -13,23 +7,23 @@ source /usr/share/yunohost/helpers
|
|||
#=================================================
|
||||
# RESTORE THE APP MAIN DIR
|
||||
#=================================================
|
||||
ynh_script_progression --message="Restoring the app main directory..." --weight=1
|
||||
ynh_script_progression "Restoring the app main directory..."
|
||||
|
||||
ynh_restore_file --origin_path="$install_dir"
|
||||
ynh_restore "$install_dir"
|
||||
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# RESTORE SYSTEM CONFIGURATIONS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1
|
||||
ynh_script_progression "Restoring system configurations related to $app..."
|
||||
|
||||
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
ynh_restore "/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
|
||||
ynh_systemd_action --service_name=nginx --action=reload
|
||||
ynh_systemctl --service=nginx --action=reload
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression --message="Restoration completed for $app" --last
|
||||
ynh_script_progression "Restoration completed for $app"
|
||||
|
|
|
@ -1,71 +1,64 @@
|
|||
#!/bin/bash
|
||||
|
||||
#=================================================
|
||||
# GENERIC START
|
||||
#=================================================
|
||||
# IMPORT GENERIC HELPERS
|
||||
#=================================================
|
||||
|
||||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
#=================================================
|
||||
# ENSURE DOWNWARD COMPATIBILITY
|
||||
#=================================================
|
||||
ynh_script_progression --message='Ensuring downward compatibility...' --weight=1
|
||||
ynh_script_progression 'Ensuring downward compatibility...'
|
||||
|
||||
if [ -z "${default_home_server:-}" ]; then
|
||||
default_home_server='matrix.org'
|
||||
ynh_app_setting_set --app=$app --key=default_home_server --value=$default_home_server
|
||||
ynh_app_setting_set --key=default_home_server --value=$default_home_server
|
||||
fi
|
||||
|
||||
if [ -z "${disable_custom_urls:-}" ]; then
|
||||
disable_custom_urls=false
|
||||
ynh_app_setting_set --app=$app --key=disable_custom_urls --value=$disable_custom_urls
|
||||
ynh_app_setting_set --key=disable_custom_urls --value=$disable_custom_urls
|
||||
fi
|
||||
|
||||
if [ -z "${disable_guests:-}" ]; then
|
||||
disable_guests=false
|
||||
ynh_app_setting_set --app=$app --key=disable_guests --value=$disable_guests
|
||||
ynh_app_setting_set --key=disable_guests --value=$disable_guests
|
||||
fi
|
||||
|
||||
if [ -z "${disable_3pid_login:-}" ]; then
|
||||
disable_3pid_login=false
|
||||
ynh_app_setting_set --app=$app --key=disable_3pid_login --value=$disable_3pid_login
|
||||
ynh_app_setting_set --key=disable_3pid_login --value=$disable_3pid_login
|
||||
fi
|
||||
|
||||
if [ -z "${default_country_code:-}" ]; then
|
||||
default_country_code=false
|
||||
ynh_app_setting_set --app=$app --key=default_country_code --value=$default_country_code
|
||||
ynh_app_setting_set --key=default_country_code --value=$default_country_code
|
||||
fi
|
||||
|
||||
if [ -z "${brand_text:-}" ]; then
|
||||
brand_text=Element
|
||||
ynh_app_setting_set --app=$app --key=brand_text --value=$brand_text
|
||||
ynh_app_setting_set --key=brand_text --value=$brand_text
|
||||
fi
|
||||
|
||||
if [ -z "${default_federate:-}" ]; then
|
||||
default_federate=true
|
||||
ynh_app_setting_set --app=$app --key=default_federate --value=$default_federate
|
||||
ynh_app_setting_set --key=default_federate --value=$default_federate
|
||||
fi
|
||||
|
||||
if [ -z "${default_theme:-}" ]; then
|
||||
default_theme=light
|
||||
ynh_app_setting_set --app=$app --key=default_theme --value=$default_theme
|
||||
ynh_app_setting_set --key=default_theme --value=$default_theme
|
||||
fi
|
||||
|
||||
if [ -z "${show_labs_settings:-}" ]; then
|
||||
show_labs_settings=false
|
||||
ynh_app_setting_set --app=$app --key=show_labs_settings --value=$show_labs_settings
|
||||
ynh_app_setting_set --key=show_labs_settings --value=$show_labs_settings
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||
ynh_script_progression "Upgrading source files..."
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="config.json"
|
||||
ynh_setup_source --dest_dir="$install_dir" --full_replace --keep="config.json"
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
@ -73,20 +66,19 @@ chown -R $app:www-data "$install_dir"
|
|||
#=================================================
|
||||
# ADD A CONFIGURATION
|
||||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
ynh_script_progression "Adding $app's configuration..."
|
||||
|
||||
configure_element
|
||||
|
||||
#=================================================
|
||||
# REAPPLY SYSTEM CONFIGURATIONS
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
|
||||
ynh_script_progression "Upgrading system configurations related to $app..."
|
||||
|
||||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
ynh_config_add_nginx
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression --message="Upgrade of $app completed" --last
|
||||
ynh_script_progression "Upgrade of $app completed"
|
||||
|
|
Loading…
Add table
Reference in a new issue