From 27f357c4d8b418ce9c5fb0dd3e918f523010e687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 28 Oct 2023 22:34:09 +0200 Subject: [PATCH] Update install --- scripts/install | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index bb1bea0..4028d6f 100644 --- a/scripts/install +++ b/scripts/install @@ -75,9 +75,8 @@ chown $app -R /var/log/$app #================================================= ynh_script_progression --message="Adding a configuration file..." --weight=6 -cp ../conf/settings.json "$install_dir/settings.json" +ynh_add_config --template="../conf/settings.json" --destination="$install_dir/settings.json" -ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$install_dir/settings.json" if [ "$export" = "abiword" ] then # Get Abiword binary path @@ -91,7 +90,6 @@ then # Set the path of soffice into Etherpad config ynh_replace_string --match_string="\"soffice\" : null" --replace_string="\"soffice\" : \"$soffice_path\"" --target_file="$install_dir/settings.json" fi -ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$install_dir/settings.json" # Use ldap for mypads if [ $mypads -eq 1 ] && [ $useldap -eq 1 ]