mirror of
https://github.com/YunoHost-Apps/framaforms_ynh.git
synced 2024-09-03 18:36:12 +02:00
Fix upgrade
This commit is contained in:
parent
cfc55e0687
commit
d33c92307f
1 changed files with 7 additions and 5 deletions
|
@ -137,11 +137,13 @@ export PATH="$final_path/.composer/vendor/bin:$PATH"
|
||||||
|
|
||||||
update-alternatives --set php /usr/bin/php$phpversion
|
update-alternatives --set php /usr/bin/php$phpversion
|
||||||
|
|
||||||
|
pushd "$final_path"
|
||||||
ynh_exec_as $app env PATH=$PATH drush @$app variable-set --exact maintenance_mode 1
|
ynh_exec_as $app env PATH=$PATH drush @$app variable-set --exact maintenance_mode 1
|
||||||
ynh_exec_as $app env PATH=$PATH drush @$app cache-clear all
|
ynh_exec_as $app env PATH=$PATH drush @$app cache-clear all
|
||||||
ynh_exec_as $app env PATH=$PATH drush @$app pm-update -y drupal
|
ynh_exec_as $app env PATH=$PATH drush @$app pm-update -y drupal
|
||||||
ynh_exec_as $app env PATH=$PATH drush @$app cache-clear all
|
ynh_exec_as $app env PATH=$PATH drush @$app cache-clear all
|
||||||
ynh_exec_as $app env PATH=$PATH drush @$app variable-set --exact maintenance_mode 0
|
ynh_exec_as $app env PATH=$PATH drush @$app variable-set --exact maintenance_mode 0
|
||||||
|
popd
|
||||||
|
|
||||||
update-alternatives --set php /usr/bin/php${YNH_DEFAULT_PHP_VERSION}
|
update-alternatives --set php /usr/bin/php${YNH_DEFAULT_PHP_VERSION}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue