mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
Merge pull request #34 from YunoHost-Apps/remove_http_auth
Remove http auth
This commit is contained in:
commit
842afff8c0
3 changed files with 4 additions and 6 deletions
|
@ -1 +0,0 @@
|
|||
INSERT INTO wp_options VALUES('','http_authentication_options','a:8:{s:13:"allow_wp_auth";b:1;s:10:"auth_label";s:19:"HTTP authentication";s:9:"login_uri";s:40:"https://__DOMAIN_PATH__/wp-login.php";s:10:"logout_uri";s:28:"https://__DOMAIN_PATH__/";s:22:"additional_server_keys";s:13:"PHP_AUTH_USER";s:24:"auto_create_email_domain";s:0:"";s:10:"db_version";i:2;s:16:"auto_create_user";b:0;}','yes');
|
|
@ -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 "__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
|
||||
#=================================================
|
||||
|
@ -212,7 +209,7 @@ fi
|
|||
#=================================================
|
||||
|
||||
$wpcli_alias plugin activate simple-ldap-login
|
||||
$wpcli_alias plugin activate http-authentication
|
||||
# Do not activate http-authentication, this plugin is sometimes unstable
|
||||
$wpcli_alias plugin activate companion-auto-update
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -150,10 +150,12 @@ update_plugin () {
|
|||
( $wpcli_alias plugin is-installed $1 && $wpcli_alias plugin update $1 ) || $wpcli_alias plugin install $1
|
||||
}
|
||||
update_plugin simple-ldap-login
|
||||
update_plugin http-authentication
|
||||
update_plugin companion-auto-update
|
||||
$wpcli_alias plugin activate companion-auto-update
|
||||
|
||||
# Disable broken plugin http-authentication
|
||||
$wpcli_alias plugin is-installed http-authentication && $wpcli_alias plugin deactivate http-authentication
|
||||
|
||||
#=================================================
|
||||
# STORE THE CHECKSUM OF THE CONFIG FILE
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue