1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/coin_ynh.git synced 2024-09-03 18:16:26 +02:00

Merge remote-tracking branch 'upstream/testing' into enable_ldap

This commit is contained in:
Josué Tille 2024-08-05 22:47:01 +02:00
commit 1e998b9d37
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5
11 changed files with 31 additions and 22 deletions

View file

@ -30,7 +30,7 @@ COIN is an Information System designed for associative ISPs in the FFDN.
- Optional features: mailing list, hardware provisionning - Optional features: mailing list, hardware provisionning
**Shipped version:** 20231216~ynh1 **Shipped version:** 20231216~ynh2
## Screenshots ## Screenshots

View file

@ -30,7 +30,7 @@ COIN is an Information System designed for associative ISPs in the FFDN.
- Optional features: mailing list, hardware provisionning - Optional features: mailing list, hardware provisionning
**Versión actual:** 20231216~ynh1 **Versión actual:** 20231216~ynh2
## Capturas ## Capturas

View file

@ -30,7 +30,7 @@ COIN is an Information System designed for associative ISPs in the FFDN.
- Optional features: mailing list, hardware provisionning - Optional features: mailing list, hardware provisionning
**Paketatutako bertsioa:** 20231216~ynh1 **Paketatutako bertsioa:** 20231216~ynh2
## Pantaila-argazkiak ## Pantaila-argazkiak

View file

@ -30,7 +30,7 @@ COIN est un système d'information pour FAI associatif dans la FFDN
- Optionnel : gestion de mailing liste, prêt de matériel - Optionnel : gestion de mailing liste, prêt de matériel
**Version incluse:** 20231216~ynh1 **Version incluse:** 20231216~ynh2
## Captures décran ## Captures décran

View file

@ -30,7 +30,7 @@ COIN is an Information System designed for associative ISPs in the FFDN.
- Optional features: mailing list, hardware provisionning - Optional features: mailing list, hardware provisionning
**Versión proporcionada:** 20231216~ynh1 **Versión proporcionada:** 20231216~ynh2
## Capturas de pantalla ## Capturas de pantalla

View file

@ -30,7 +30,7 @@ COIN is an Information System designed for associative ISPs in the FFDN.
- Optional features: mailing list, hardware provisionning - Optional features: mailing list, hardware provisionning
**Versi terkirim:** 20231216~ynh1 **Versi terkirim:** 20231216~ynh2
## Tangkapan Layar ## Tangkapan Layar

View file

@ -30,7 +30,7 @@ COIN is an Information System designed for associative ISPs in the FFDN.
- Optional features: mailing list, hardware provisionning - Optional features: mailing list, hardware provisionning
**分发版本:** 20231216~ynh1 **分发版本:** 20231216~ynh2
## 截图 ## 截图

View file

@ -7,7 +7,7 @@ name = "Coin"
description.en = "Member dashboard for non profit isp." description.en = "Member dashboard for non profit isp."
description.fr = "Coin est un Outil pour un Internet Neutre." description.fr = "Coin est un Outil pour un Internet Neutre."
version = "20231216~ynh1" version = "20231216~ynh2"
maintainers = ["ljf", "aleks"] maintainers = ["ljf", "aleks"]
@ -17,7 +17,7 @@ website = "https://code.ffdn.org/FFDN/coin"
code = "https://code.ffdn.org/ffdn/coin" code = "https://code.ffdn.org/ffdn/coin"
[integration] [integration]
yunohost = ">= 11.2.13" yunohost = ">= 11.2.20"
architectures = "all" architectures = "all"
multi_instance = false multi_instance = false
ldap = false ldap = false
@ -28,9 +28,11 @@ ram.runtime = "50M"
[install] [install]
[install.domain] [install.domain]
# this is a generic question - ask strings are automatically handled by Yunohost's core
type = "domain" type = "domain"
[install.admin]
type = "user"
[install.email] [install.email]
ask.en = "Choose email were send notification" ask.en = "Choose email were send notification"
ask.fr = "Choisissez l'email vers lequel envoyer les notifications" ask.fr = "Choisissez l'email vers lequel envoyer les notifications"

View file

@ -9,11 +9,24 @@ source /usr/share/yunohost/helpers
#================================================= #=================================================
ynh_print_info --message="Declaring files to be backed up..." ynh_print_info --message="Declaring files to be backed up..."
#=================================================
# BACKUP THE APP MAIN DIR
#=================================================
ynh_backup --src_path="$install_dir" ynh_backup --src_path="$install_dir"
#=================================================
# SYSTEM CONFIGURATION
#=================================================
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_backup --src_path="/etc/systemd/system/$app.service" ynh_backup --src_path="/etc/systemd/system/$app.service"
#=================================================
# BACKUP THE DATABASE
#=================================================
ynh_print_info --message="Backing up the PostgreSQL database..." ynh_print_info --message="Backing up the PostgreSQL database..."
ynh_psql_dump_db --database="$db_name" > db.sql ynh_psql_dump_db --database="$db_name" > db.sql
#================================================= #=================================================

View file

@ -3,7 +3,10 @@
source _common.sh source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
ynh_script_progression --message="Removing system configurations..." --weight=1 #=================================================
# REMOVE SYSTEM CONFIGURATIONS
#=================================================
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`) # 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 if ynh_exec_warn_less yunohost service status $app >/dev/null
@ -17,8 +20,6 @@ ynh_remove_systemd_config
# Remove the dedicated NGINX config # Remove the dedicated NGINX config
ynh_remove_nginx_config ynh_remove_nginx_config
# Remove the log files
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT
#================================================= #=================================================

View file

@ -56,19 +56,12 @@ systemctl enable $app.service --quiet
yunohost service add $app --description "$app daemon" --log="/var/log/$app/$app.log" yunohost service add $app --description "$app daemon" --log="/var/log/$app/$app.log"
#================================================= #=================================================
# START SYSTEMD SERVICE # RELOAD NGINX AND PHP-FPM OR THE APP SERVICE
#================================================= #=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
#=================================================
# GENERIC FINALIZATION
#=================================================
# RELOAD NGINX
#=================================================
ynh_script_progression --message="Reloading NGINX web server..." --weight=1
ynh_systemd_action --service_name=nginx --action=reload ynh_systemd_action --service_name=nginx --action=reload
#================================================= #=================================================