mirror of
https://github.com/YunoHost-Apps/framaforms_ynh.git
synced 2024-09-03 18:36:12 +02:00
[fix] Call of drush in upgrade
This commit is contained in:
parent
e80522cf19
commit
a5ef2ca30d
3 changed files with 6 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
; Manifest
|
; Manifest
|
||||||
domain="domain.tld" (DOMAIN)
|
domain="domain.tld" (DOMAIN)
|
||||||
path="/path" (PATH)
|
path="/path" (PATH)
|
||||||
password="bibopP5" (PASSWORD)
|
password="password"
|
||||||
is_public=1 (PUBLIC|public=1|private=0)
|
is_public=1 (PUBLIC|public=1|private=0)
|
||||||
; Checks
|
; Checks
|
||||||
pkg_linter=1
|
pkg_linter=1
|
||||||
|
|
|
@ -62,6 +62,9 @@ ynh_restore
|
||||||
|
|
||||||
# Restore permissions on app files
|
# Restore permissions on app files
|
||||||
chown -R root: $final_path
|
chown -R root: $final_path
|
||||||
|
chmod 2775 "$final_path/sites/default/files"
|
||||||
|
chown -R $app: "${final_path}_private"
|
||||||
|
chmod 775 "${final_path}_private"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC RESTORATION
|
# SPECIFIC RESTORATION
|
||||||
|
|
|
@ -154,6 +154,7 @@ ynh_script_progression --message="Upgrading Drupal..." --weight=1
|
||||||
|
|
||||||
ynh_backup_if_checksum_is_different --file="$final_path/$app/sites/default/settings.php"
|
ynh_backup_if_checksum_is_different --file="$final_path/$app/sites/default/settings.php"
|
||||||
|
|
||||||
|
pushd $final_path
|
||||||
sudo -u $app $final_path/.composer/vendor/bin/drush @$app variable-set --exact maintenance_mode 1
|
sudo -u $app $final_path/.composer/vendor/bin/drush @$app variable-set --exact maintenance_mode 1
|
||||||
sudo -u $app $final_path/.composer/vendor/bin/drush @$app cache-clear all
|
sudo -u $app $final_path/.composer/vendor/bin/drush @$app cache-clear all
|
||||||
sudo -u $app $final_path/.composer/vendor/bin/drush @$app pm-update -y drupal
|
sudo -u $app $final_path/.composer/vendor/bin/drush @$app pm-update -y drupal
|
||||||
|
@ -161,6 +162,7 @@ sudo -u $app $final_path/.composer/vendor/bin/drush @$app vset --exact maintenan
|
||||||
sudo -u $app $final_path/.composer/vendor/bin/drush @$app cache-clear all
|
sudo -u $app $final_path/.composer/vendor/bin/drush @$app cache-clear all
|
||||||
sudo -u $app $final_path/.composer/vendor/bin/drush @$app l10n-update-refresh
|
sudo -u $app $final_path/.composer/vendor/bin/drush @$app l10n-update-refresh
|
||||||
sudo -u $app $final_path/.composer/vendor/bin/drush @$app l10n-update
|
sudo -u $app $final_path/.composer/vendor/bin/drush @$app l10n-update
|
||||||
|
popd
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue