mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
fix auto upgrade to major versions
This commit is contained in:
parent
08841efdd2
commit
a9718cc0bc
2 changed files with 8 additions and 0 deletions
|
@ -215,6 +215,8 @@ ynh_script_progression --message="Activating plugins..." --weight=4
|
|||
$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
|
||||
# Enable the auto update of major versions
|
||||
ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name <<< "UPDATE wp_auto_updates SET onoroff='on' WHERE wp_auto_updates.name='major';"
|
||||
$wpcli_alias plugin activate wp-fail2ban-redux $plugin_network
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -246,6 +246,12 @@ update_plugin simple-ldap-login
|
|||
$wpcli_alias plugin activate simple-ldap-login $plugin_network
|
||||
update_plugin companion-auto-update
|
||||
$wpcli_alias plugin activate companion-auto-update $plugin_network
|
||||
|
||||
|
||||
# Enable the auto update of major versions
|
||||
db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
|
||||
ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name <<< "UPDATE wp_auto_updates SET onoroff='on' WHERE wp_auto_updates.name='major';"
|
||||
|
||||
update_plugin wp-fail2ban-redux
|
||||
$wpcli_alias plugin activate wp-fail2ban-redux $plugin_network
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue