From 8b0653084b6f0811f2d914531bf26a4d665505e2 Mon Sep 17 00:00:00 2001 From: Gabriel Cossette Date: Wed, 30 Jun 2021 22:42:27 +0000 Subject: [PATCH] update --- scripts/install | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index 22b4e60..46dfeb6 100644 --- a/scripts/install +++ b/scripts/install @@ -168,8 +168,9 @@ done #================================================= ynh_script_progression --message="Installing WordPress plugins..." --weight=20 -ynh_exec_warn_less wget --no-verbose https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar --output-document=$final_path/wp-cli.phar -wpcli_alias="php$phpversion $final_path/wp-cli.phar --allow-root --path=$final_path" +ynh_exec_warn_less wget --no-verbose https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar --output-document/usr/local/bin/wp +chmod +x /usr/local/bin/wp +wpcli_alias="php$phpversion /usr/local/bin/wp --allow-root --path=$final_path" $wpcli_alias plugin install authldap $wpcli_alias plugin install http-authentication @@ -292,12 +293,6 @@ ynh_script_progression --message="Reloading NGINX web server..." --weight=3 ynh_systemd_action --service_name=nginx --action=reload -#================================================= -# REMOVE WP-CLI.PHAR -#================================================= - -ynh_secure_remove --file=$final_path/wp-cli.phar - #================================================= # SEND A README FOR THE ADMIN #=================================================