mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
Merge pull request #89 from YunoHost-Apps/specific_php_version
specify php version to use
This commit is contained in:
commit
4044832fcf
2 changed files with 5 additions and 5 deletions
|
@ -68,7 +68,7 @@ ynh_app_setting_set --app=$app --key=admin_mail_html --value=1
|
|||
#=================================================
|
||||
ynh_script_progression --message="Installing dependencies..." --weight=9
|
||||
|
||||
ynh_install_app_dependencies php5-cli
|
||||
ynh_install_app_dependencies php7.0-cli
|
||||
|
||||
#=================================================
|
||||
# CREATE A MYSQL DATABASE
|
||||
|
@ -174,7 +174,7 @@ done
|
|||
ynh_script_progression --message="Installing wordpress plugins..." --weight=20
|
||||
|
||||
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 $final_path/wp-cli.phar --allow-root --path=$final_path"
|
||||
wpcli_alias="php7.0 $final_path/wp-cli.phar --allow-root --path=$final_path"
|
||||
|
||||
$wpcli_alias plugin install simple-ldap-login
|
||||
$wpcli_alias plugin install http-authentication
|
||||
|
|
|
@ -131,7 +131,7 @@ 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="php7.0 $final_path/wp-cli.phar --allow-root --path=$final_path"
|
||||
if [ $multisite -eq 1 ]; then
|
||||
plugin_network="--network"
|
||||
fi
|
||||
|
@ -173,7 +173,7 @@ ynh_maintenance_mode_ON
|
|||
#=================================================
|
||||
ynh_script_progression --message="Upgrading dependencies..." --weight=11
|
||||
|
||||
ynh_install_app_dependencies php5-cli
|
||||
ynh_install_app_dependencies php7.0-cli
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
|
@ -242,7 +242,7 @@ ynh_app_setting_set --app=$app --key=multisite --value=$multisite
|
|||
ynh_script_progression --message="Updating plugins" --weight=11
|
||||
|
||||
# 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="php7.0 $final_path/wp-cli.phar --allow-root --path=$final_path"
|
||||
update_plugin () {
|
||||
( $wpcli_alias plugin is-installed $1 && $wpcli_alias plugin update $1 ) || $wpcli_alias plugin install $1
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue