From 0e60ec046abf407fe4c9094f8d4a3df6c21ebf72 Mon Sep 17 00:00:00 2001 From: ljf Date: Tue, 27 Nov 2018 18:14:40 +0100 Subject: [PATCH] [fix] Libretoception --- scripts/install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 1db4a78..897e289 100755 --- a/scripts/install +++ b/scripts/install @@ -106,9 +106,10 @@ cp "../conf/config.dist.php" "$final_path/config.php" #================================================= # MODIFY A CONFIG FILE #================================================= +provider="${domain%%.*}" if [ "$etherpad_instance" != "https://annuel2.framapad.org" ]; then ynh_replace_string "// CUSTOM_PROVIDER" "" "$final_path/config.php" - ynh_replace_string "__PROVIDER__" "default" "$final_path/config.php" + ynh_replace_string "__PROVIDER__" "$provider" "$final_path/config.php" ynh_replace_string "__INSTANCE__" "$etherpad_instance" "$final_path/config.php" else ynh_replace_string "__PROVIDER__" "framapad" "$final_path/config.php"