1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/galene_ynh.git synced 2024-09-03 18:36:31 +02:00
This commit is contained in:
Éric Gaspar 2024-06-23 09:35:58 +02:00
parent d28dad286a
commit 72bd4aee27
4 changed files with 3 additions and 14 deletions

View file

@ -18,7 +18,7 @@ userdoc = "https://galene.org/faq.html"
code = "https://github.com/jech/galene"
[integration]
yunohost = ">= 11.2.14"
yunohost = ">= 11.2.15"
helpers_version = "2.1"
architectures = "all"
multi_instance = false

View file

@ -23,7 +23,6 @@ ynh_hide_warnings yunohost firewall allow UDP -4 49152:65535
#=================================================
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/build"
ynh_setup_source --dest_dir="$install_dir/build_ldap" --source_id="ldap"
@ -41,7 +40,7 @@ chown -R $app:www-data "$install_dir"
#=================================================
# BUILD APP
#=================================================
ynh_script_progression "Building app..."
ynh_script_progression "Building $app..."
ynh_go_install
@ -103,10 +102,8 @@ ynh_script_progression "Adding system configurations related to $app..."
public_ip4="$(curl -s ip.yunohost.org)" || true
# Create a dedicated NGINX config
ynh_config_add_nginx
# Create a dedicated systemd config
ynh_config_add_systemd
ynh_config_add_systemd --service=${app}_ldap --template="ldap.service"

View file

@ -4,30 +4,24 @@ source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# STANDARD REMOVE
#=================================================
# REMOVE SERVICE INTEGRATION IN YUNOHOST
# REMOVE SYSTEM CONFIGURATIONS
#=================================================
ynh_script_progression "Removing system configurations related to $app..."
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_hide_warnings yunohost service status $app >/dev/null
then
ynh_script_progression "Removing $app service integration..."
yunohost service remove $app
fi
# Remove the service from the list of services known by YunoHost (added from `yunohost service add`)
if ynh_hide_warnings yunohost service status ${app}_ldap >/dev/null
then
ynh_script_progression "Removing ${app}_ldap service integration..."
yunohost service remove ${app}_ldap
fi
# Remove the dedicated systemd config
ynh_config_remove_systemd
ynh_config_remove_systemd${app}_ldap
# Remove the dedicated NGINX config
ynh_config_remove_nginx
#=================================================

View file

@ -122,10 +122,8 @@ ynh_script_progression "Upgrading system configurations related to $app..."
public_ip4="$(curl -s ip.yunohost.org)" || true
# Create a dedicated NGINX config
ynh_config_add_nginx
# Create a dedicated systemd config
ynh_config_add_systemd
ynh_config_add_systemd --service=${app}_ldap --template="ldap.service"