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

Add install script for login LDAP plugin

This commit is contained in:
Nils VAN ZUIJLEN 2021-02-18 18:22:14 +01:00
parent 8220bf12d7
commit d77671cb01

View file

@ -143,6 +143,26 @@ then
ynh_permission_update --permission main --remove visitors --add all_users
fi
#=================================================
# DOWNLOAD AND CONFIGURE LDAP PLUGIN
#=================================================
# Download as git repository
git clone https://github.com/YesWiki/yeswiki-extension-loginldap $final_path/tools/loginldap
# Add config at the end of wakka.config.php
ynh_replace_string --match_string=");"\
--replace_string=" 'ldap_host' => '127.0.0.1',\n);"\
--target_file="$final_path/wakka.config.php"
ynh_replace_string --match_string=");"\
--replace_string=" 'ldap_port' => '389',\n);"\
--target_file="$final_path/wakka.config.php"
ynh_replace_string --match_string=");"\
--replace_string=" 'ldap_base' => 'ou=users,dc=yunohost,dc=org'\n);"\
--target_file="$final_path/wakka.config.php"
#=================================================
# GENERIC FINALIZATION
#=================================================