1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/drupal7_ynh.git synced 2024-09-03 18:26:19 +02:00

Fix php cli

This commit is contained in:
yalh76 2019-08-05 03:13:13 +02:00
parent 2fa47a3e8c
commit 2937b21da8
2 changed files with 8 additions and 0 deletions

View file

@ -144,6 +144,8 @@ ynh_print_info --message="Installing Drupal..."
chown -R $app: $final_path
update-alternatives --set php /usr/bin/php7.2
pushd "$final_path"
sudo -u $app env PATH=$PATH drush pm-download drupal-7 --drupal-project-rename=$app
popd
@ -162,6 +164,8 @@ sudo -u $app env PATH=$PATH drush @$app l10n-update
sudo -u $app env PATH=$PATH drush @$app pm-update
sudo -u $app env PATH=$PATH drush @$app core-cron
update-alternatives --set php /usr/bin/php7.0
#=================================================
# SETUP THE CRON FILE
#=================================================

View file

@ -130,6 +130,8 @@ ynh_print_info --message="Upgrading Drupal..."
ynh_backup_if_checksum_is_different --file="$final_path/$app/sites/default/settings.php"
export PATH="$final_path/.composer/vendor/bin:$PATH"
update-alternatives --set php /usr/bin/php7.2
sudo -u $app env PATH=$PATH drush @$app variable-set --exact maintenance_mode 1
sudo -u $app env PATH=$PATH drush @$app cache-clear all
sudo -u $app env PATH=$PATH drush @$app pm-update -y drupal
@ -138,6 +140,8 @@ sudo -u $app env PATH=$PATH drush @$app cache-clear all
sudo -u $app env PATH=$PATH drush @$app l10n-update-refresh
sudo -u $app env PATH=$PATH drush @$app l10n-update
update-alternatives --set php /usr/bin/php7.0
#=================================================
# STORE THE CONFIG FILE CHECKSUM
#=================================================