1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libreto_ynh.git synced 2024-09-03 19:36:14 +02:00

[fix] Libretoception

This commit is contained in:
ljf 2018-11-27 18:14:40 +01:00
parent b55964afc5
commit 0e60ec046a

View file

@ -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"