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:
parent
8220bf12d7
commit
d77671cb01
1 changed files with 20 additions and 0 deletions
|
@ -143,6 +143,26 @@ then
|
||||||
ynh_permission_update --permission main --remove visitors --add all_users
|
ynh_permission_update --permission main --remove visitors --add all_users
|
||||||
fi
|
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
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue