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

correct restore & change url

This commit is contained in:
Laurent GAY 2023-12-16 16:45:14 +01:00
parent c3b9704252
commit 22fb96a7cd
8 changed files with 12 additions and 6 deletions

View file

View file

@ -1 +0,0 @@
This is a dummy description of this app features

View file

@ -1 +0,0 @@
Ceci est une fausse description des fonctionalités de l'app

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

View file

@ -6,7 +6,7 @@ name = "Diacamma"
description.en = "Management application for volunteers (association, condominium)" description.en = "Management application for volunteers (association, condominium)"
description.fr = "Application de gestion pour les bénévoles (association, copropriété)" description.fr = "Application de gestion pour les bénévoles (association, copropriété)"
version = "23.12.15.16~ynh1" version = "23.12.16.16~ynh1"
maintainers = ["Laurent Gay"] maintainers = ["Laurent Gay"]

View file

@ -30,8 +30,17 @@ ynh_change_url_nginx_config
#================================================= #=================================================
# SPECIFIC MODIFICATIONS # SPECIFIC MODIFICATIONS
#================================================= #=================================================
# ...
#================================================= pushd $install_dir
ynh_add_config --template="../conf/extra_diacamma.json" --destination="/tmp/extra.json"
if [ "$path" == "/" ]
then
sed -i "/USE_X_FORWARDED_HOST/d" /tmp/extra.json
sed -i "/FORCE_SCRIPT_NAME/d" /tmp/extra.json
fi
extra_json=$(jq -c . /tmp/extra.json)
venv/bin/lucterios_admin.py modif -n inst-${app} -e ''$extra_json''
popd
#================================================= #=================================================
# START SYSTEMD SERVICE # START SYSTEMD SERVICE

View file

@ -10,7 +10,6 @@ source /usr/share/yunohost/helpers
ynh_script_progression --message="Restoring the app main directory..." --weight=1 ynh_script_progression --message="Restoring the app main directory..." --weight=1
ynh_restore_file --origin_path="$install_dir" ynh_restore_file --origin_path="$install_dir"
ynh_restore_file --origin_path="$data_dir"
#================================================= #=================================================
# RESTORE SYSTEM CONFIGURATIONS # RESTORE SYSTEM CONFIGURATIONS