mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
Quick fix for wp-fail2ban
This commit is contained in:
parent
71bb63d6e7
commit
9d8b78e7fb
1 changed files with 4 additions and 1 deletions
|
@ -132,7 +132,10 @@ fi
|
|||
# Replace wp-fail2ban by wp-fail2ban-redux
|
||||
wget -nv https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O $final_path/wp-cli.phar
|
||||
wpcli_alias="php $final_path/wp-cli.phar --allow-root --path=$final_path"
|
||||
$wpcli_alias plugin is-installed wp-fail2ban && $wpcli_alias plugin deactivate wp-fail2ban && $wpcli_alias plugin uninstall wp-fail2ban
|
||||
if [ $multisite -eq 1 ]; then
|
||||
plugin_network="--network"
|
||||
fi
|
||||
$wpcli_alias plugin is-installed wp-fail2ban && $wpcli_alias plugin deactivate $plugin_network wp-fail2ban && $wpcli_alias plugin uninstall wp-fail2ban
|
||||
$wpcli_alias plugin is-installed wp-fail2ban-redux || $wpcli_alias plugin install wp-fail2ban-redux
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue