1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wordpress_ynh.git synced 2024-09-03 20:36:10 +02:00

revert auto upgrade to major version

This commit is contained in:
Kay0u 2021-03-10 18:00:41 +01:00
parent 3542b443c6
commit a7ba8031cd
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
2 changed files with 0 additions and 11 deletions

View file

@ -215,8 +215,6 @@ 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
#=================================================

View file

@ -247,15 +247,6 @@ $wpcli_alias plugin activate simple-ldap-login $plugin_network
update_plugin companion-auto-update
$wpcli_alias plugin activate companion-auto-update $plugin_network
if ynh_compare_current_package_version --comparison lt --version 5.6~ynh2
then
# Get the database table prefix
db_prefix=$(grep '^$table_prefix' "$final_path/wp-config.php" | sed "s/.*'\(.*\)'.*/\1/" )
# 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 ${db_prefix}auto_updates SET onoroff='on' WHERE ${db_prefix}auto_updates.name='major';"
fi
update_plugin wp-fail2ban-redux
$wpcli_alias plugin activate wp-fail2ban-redux $plugin_network