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

Update install

This commit is contained in:
Éric Gaspar 2023-10-28 22:34:09 +02:00
parent 83f6e8d1d1
commit 27f357c4d8

View file

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