1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snappymail_ynh.git synced 2024-09-03 20:26:29 +02:00
This commit is contained in:
eric_G 2024-09-01 15:07:33 +00:00 committed by GitHub
commit 11705308a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 18 additions and 27 deletions

View file

@ -19,7 +19,7 @@ It shall NOT be edited by hand.
Simple, modern, lightweight & fast web-based email client. The drastically upgraded & secured fork of RainLoop Webmail Community edition. Simple, modern, lightweight & fast web-based email client. The drastically upgraded & secured fork of RainLoop Webmail Community edition.
**Shipped version:** 2.37.3~ynh1 **Shipped version:** 2.37.3~ynh2
**Demo:** <https://snappymail.eu/demo/> **Demo:** <https://snappymail.eu/demo/>

View file

@ -19,7 +19,7 @@ No se debe editar a mano.
Simple, modern, lightweight & fast web-based email client. The drastically upgraded & secured fork of RainLoop Webmail Community edition. Simple, modern, lightweight & fast web-based email client. The drastically upgraded & secured fork of RainLoop Webmail Community edition.
**Versión actual:** 2.37.3~ynh1 **Versión actual:** 2.37.3~ynh2
**Demo:** <https://snappymail.eu/demo/> **Demo:** <https://snappymail.eu/demo/>

View file

@ -19,7 +19,7 @@ EZ editatu eskuz.
Simple, modern, lightweight & fast web-based email client. The drastically upgraded & secured fork of RainLoop Webmail Community edition. Simple, modern, lightweight & fast web-based email client. The drastically upgraded & secured fork of RainLoop Webmail Community edition.
**Paketatutako bertsioa:** 2.37.3~ynh1 **Paketatutako bertsioa:** 2.37.3~ynh2
**Demoa:** <https://snappymail.eu/demo/> **Demoa:** <https://snappymail.eu/demo/>

View file

@ -18,7 +18,7 @@ Il NE doit PAS être modifié à la main.
Client de messagerie Web simple, moderne, léger et rapide. Snappymail est un fork considérablement amélioré et sécurisé de l'édition RainLoop Webmail Community. Client de messagerie Web simple, moderne, léger et rapide. Snappymail est un fork considérablement amélioré et sécurisé de l'édition RainLoop Webmail Community.
**Version incluse:** 2.37.3~ynh1 **Version incluse:** 2.37.3~ynh2
**Démo:** <https://snappymail.eu/demo/> **Démo:** <https://snappymail.eu/demo/>

View file

@ -19,7 +19,7 @@ NON debe editarse manualmente.
Simple, modern, lightweight & fast web-based email client. The drastically upgraded & secured fork of RainLoop Webmail Community edition. Simple, modern, lightweight & fast web-based email client. The drastically upgraded & secured fork of RainLoop Webmail Community edition.
**Versión proporcionada:** 2.37.3~ynh1 **Versión proporcionada:** 2.37.3~ynh2
**Demo:** <https://snappymail.eu/demo/> **Demo:** <https://snappymail.eu/demo/>

View file

@ -19,7 +19,7 @@ Ini TIDAK boleh diedit dengan tangan.
Simple, modern, lightweight & fast web-based email client. The drastically upgraded & secured fork of RainLoop Webmail Community edition. Simple, modern, lightweight & fast web-based email client. The drastically upgraded & secured fork of RainLoop Webmail Community edition.
**Versi terkirim:** 2.37.3~ynh1 **Versi terkirim:** 2.37.3~ynh2
**Demo:** <https://snappymail.eu/demo/> **Demo:** <https://snappymail.eu/demo/>

View file

@ -19,7 +19,7 @@
Simple, modern, lightweight & fast web-based email client. The drastically upgraded & secured fork of RainLoop Webmail Community edition. Simple, modern, lightweight & fast web-based email client. The drastically upgraded & secured fork of RainLoop Webmail Community edition.
**Поставляемая версия:** 2.37.3~ynh1 **Поставляемая версия:** 2.37.3~ynh2
**Демо-версия:** <https://snappymail.eu/demo/> **Демо-версия:** <https://snappymail.eu/demo/>

View file

@ -19,7 +19,7 @@
Simple, modern, lightweight & fast web-based email client. The drastically upgraded & secured fork of RainLoop Webmail Community edition. Simple, modern, lightweight & fast web-based email client. The drastically upgraded & secured fork of RainLoop Webmail Community edition.
**分发版本:** 2.37.3~ynh1 **分发版本:** 2.37.3~ynh2
**演示:** <https://snappymail.eu/demo/> **演示:** <https://snappymail.eu/demo/>

View file

@ -5,7 +5,7 @@ name = "SnappyMail"
description.en = "Simple, modern, lightweight & fast web-based e-mail client" description.en = "Simple, modern, lightweight & fast web-based e-mail client"
description.fr = "Client de messagerie Web simple, moderne, léger et rapide" description.fr = "Client de messagerie Web simple, moderne, léger et rapide"
version = "2.37.3~ynh1" version = "2.37.3~ynh2"
maintainers = [] maintainers = []
@ -17,7 +17,7 @@ admindoc = "https://github.com/the-djmaze/snappymail/wiki"
code = "https://github.com/the-djmaze/snappymail" code = "https://github.com/the-djmaze/snappymail"
[integration] [integration]
yunohost = ">= 11.2.20" yunohost = ">= 11.2.29"
helpers_version = "2.1" helpers_version = "2.1"
architectures = "all" architectures = "all"
multi_instance = true multi_instance = true
@ -56,6 +56,7 @@ ram.runtime = "50M"
[resources.system_user] [resources.system_user]
[resources.install_dir] [resources.install_dir]
group = "www-data:r-x"
[resources.permissions] [resources.permissions]
main.url = "/" main.url = "/"

View file

@ -1,6 +1,5 @@
#!/bin/bash #!/bin/bash
# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
source ../settings/scripts/_common.sh source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers

View file

@ -10,9 +10,6 @@ ynh_script_progression "Setting up source files..."
ynh_setup_source --dest_dir="$install_dir/app" ynh_setup_source --dest_dir="$install_dir/app"
chmod -R "u=rX,g=rX,o=" "$install_dir"
chown -R "$app:www-data" "$install_dir"
#================================================= #=================================================
# ADD A CONFIGURATION # ADD A CONFIGURATION
#================================================= #=================================================

View file

@ -1,6 +1,5 @@
#!/bin/bash #!/bin/bash
# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
source ../settings/scripts/_common.sh source ../settings/scripts/_common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
@ -11,9 +10,6 @@ ynh_script_progression "Restoring the app main directory..."
ynh_restore "$install_dir" ynh_restore "$install_dir"
chmod -R "u=rX,g=rX,o=" "$install_dir"
chown -R "$app:www-data" "$install_dir"
chmod -R "u=rwX,g=,o=" "$install_dir/app/data" chmod -R "u=rwX,g=,o=" "$install_dir/app/data"
chown -R "$app:$app" "$install_dir/app/data" chown -R "$app:$app" "$install_dir/app/data"

View file

@ -22,21 +22,18 @@ fi
#================================================= #=================================================
ynh_script_progression "Upgrading source files..." ynh_script_progression "Upgrading source files..."
ynh_setup_source --dest_dir="$install_dir/app" --full_replace=1 --keep="data/_data_/_default_/configs/application.ini" ynh_setup_source --dest_dir="$install_dir/app" --full_replace --keep="app/data/_data_/_default_/configs/application.ini"
chmod -R "u=rX,g=rX,o=" "$install_dir"
chown -R "$app:www-data" "$install_dir"
#================================================= #=================================================
# UPDATE A CONFIG FILE # UPDATE A CONFIG FILE
#================================================= #=================================================
ynh_script_progression "Updating configuration..." #ynh_script_progression "Updating configuration..."
mkdir -p "$install_dir/app/data/_data_/_default_/configs" #mkdir -p "$install_dir/app/data/_data_/_default_/configs"
ynh_config_add --template="application.ini" --destination="$install_dir/app/data/_data_/_default_/configs/application.ini" #ynh_config_add --template="application.ini" --destination="$install_dir/app/data/_data_/_default_/configs/application.ini"
chmod -R "u=rwX,g=,o=" "$install_dir/app/data" #chmod -R "u=rwX,g=,o=" "$install_dir/app/data"
chown -R "$app:$app" "$install_dir/app/data" #chown -R "$app:$app" "$install_dir/app/data"
#================================================= #=================================================
# SETUP SSO # SETUP SSO
@ -44,6 +41,7 @@ chown -R "$app:$app" "$install_dir/app/data"
ynh_script_progression "Applying SSO patch..." ynh_script_progression "Applying SSO patch..."
ynh_config_add --template="sso.php" --destination="$install_dir/index.php" ynh_config_add --template="sso.php" --destination="$install_dir/index.php"
chmod "u=rX,g=,o=" "$install_dir/index.php" chmod "u=rX,g=,o=" "$install_dir/index.php"
chown "$app:www-data" "$install_dir/index.php" chown "$app:www-data" "$install_dir/index.php"