|
|
|
@ -200,17 +200,19 @@ then |
|
|
|
ynh_replace_string "//--MULTISITE2--define" "define" $final_path/wp-config.php |
|
|
|
|
|
|
|
ynh_mysql_connect_as $db_name $db_pwd $db_name < ../conf/sql/multisite.sql |
|
|
|
plugin_network="--network" |
|
|
|
else |
|
|
|
ynh_mysql_connect_as $db_name $db_pwd $db_name < ../conf/sql/single.sql |
|
|
|
plugin_network="" |
|
|
|
fi |
|
|
|
|
|
|
|
#================================================= |
|
|
|
# ACTIVATE WORDPRESS' PLUGINS |
|
|
|
#================================================= |
|
|
|
|
|
|
|
$wpcli_alias plugin activate simple-ldap-login |
|
|
|
$wpcli_alias plugin activate simple-ldap-login $plugin_network |
|
|
|
# Do not activate http-authentication, this plugin is sometimes unstable |
|
|
|
$wpcli_alias plugin activate companion-auto-update |
|
|
|
$wpcli_alias plugin activate companion-auto-update $plugin_network |
|
|
|
|
|
|
|
#================================================= |
|
|
|
# STORE THE CHECKSUM OF THE CONFIG FILE |
|
|
|
|