|
|
@ -176,9 +176,6 @@ $wpcli_alias plugin install companion-auto-update |
|
|
ynh_replace_string "__DOMAIN_PATH__" "$domain$path_url" ../conf/sql/*.sql |
|
|
ynh_replace_string "__DOMAIN_PATH__" "$domain$path_url" ../conf/sql/*.sql |
|
|
ynh_replace_string "__DATE__" "$(date +%s)" ../conf/sql/*.sql |
|
|
ynh_replace_string "__DATE__" "$(date +%s)" ../conf/sql/*.sql |
|
|
|
|
|
|
|
|
# Charge les commandes sql communes à tous les scripts. |
|
|
|
|
|
ynh_mysql_connect_as $db_name $db_pwd $db_name < ../conf/sql/common.sql |
|
|
|
|
|
|
|
|
|
|
|
#================================================= |
|
|
#================================================= |
|
|
# SET LANGUAGE |
|
|
# SET LANGUAGE |
|
|
#================================================= |
|
|
#================================================= |
|
|
@ -203,17 +200,19 @@ then |
|
|
ynh_replace_string "//--MULTISITE2--define" "define" $final_path/wp-config.php |
|
|
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 |
|
|
ynh_mysql_connect_as $db_name $db_pwd $db_name < ../conf/sql/multisite.sql |
|
|
|
|
|
plugin_network="--network" |
|
|
else |
|
|
else |
|
|
ynh_mysql_connect_as $db_name $db_pwd $db_name < ../conf/sql/single.sql |
|
|
ynh_mysql_connect_as $db_name $db_pwd $db_name < ../conf/sql/single.sql |
|
|
|
|
|
plugin_network="" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
#================================================= |
|
|
#================================================= |
|
|
# ACTIVATE WORDPRESS' PLUGINS |
|
|
# ACTIVATE WORDPRESS' PLUGINS |
|
|
#================================================= |
|
|
#================================================= |
|
|
|
|
|
|
|
|
$wpcli_alias plugin activate simple-ldap-login |
|
|
|
|
|
$wpcli_alias plugin activate http-authentication |
|
|
|
|
|
$wpcli_alias plugin activate companion-auto-update |
|
|
|
|
|
|
|
|
$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 $plugin_network |
|
|
|
|
|
|
|
|
#================================================= |
|
|
#================================================= |
|
|
# STORE THE CHECKSUM OF THE CONFIG FILE |
|
|
# STORE THE CHECKSUM OF THE CONFIG FILE |
|
|
|