From 47b7bd156cb543ec1480ba32d8d3d7a96a9b4628 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 21 Jun 2021 18:15:01 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index fb2d76d..97aadcc 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -136,7 +136,7 @@ then ynh_script_progression --message="Upgrading source files..." # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" --keep="$final_path/lstu.conf" + ynh_setup_source --dest_dir="$final_path" #--keep="$final_path/lstu.conf" fi chmod 750 "$final_path" @@ -167,6 +167,18 @@ pushd $final_path carton install --deployment --without=sqlite --without=mysql popd +#================================================= +# CONFIGURE LSTU +#================================================= +ynh_script_progression --message="Configuring Lstu..." + +if [ $is_public -eq 0 ]; +then + ynh_add_config --template="../conf/lstu.conf.ldap" --destination="$final_path/lstu.conf" +else + ynh_add_config --template="../conf/lstu.conf.template" --destination="$final_path/lstu.conf" +fi + #================================================= # SETUP LOGROTATE #=================================================