mirror of
https://github.com/YunoHost-Apps/drupal7_ynh.git
synced 2024-09-03 18:26:19 +02:00
commit
484ac7652e
5 changed files with 12 additions and 6 deletions
|
@ -44,7 +44,6 @@ LDAP module can be installed
|
|||
Developers info
|
||||
----------------
|
||||
|
||||
**Only if you want to use a testing branch for coding, instead of merging directly into master.**
|
||||
Please do your pull request to the [testing branch](https://github.com/YunoHost-Apps/drupal7_ynh/tree/testing).
|
||||
|
||||
To try the testing branch, please proceed like that.
|
||||
|
|
|
@ -44,7 +44,6 @@ le module d'authentification LDAP peut être installé
|
|||
Informations pour les développeurs
|
||||
----------------
|
||||
|
||||
**Seulement si vous voulez utiliser une branche de test pour le codage, au lieu de fusionner directement dans la banche principale.**
|
||||
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/drupal7_ynh/tree/testing).
|
||||
|
||||
Pour essayer la branche testing, procédez comme suit.
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
"id": "drupal7",
|
||||
"packaging_format": 1,
|
||||
"description": {
|
||||
"en": "Drupal 7 for YunoHost application.",
|
||||
"fr": "Drupal 7 pour YunoHost."
|
||||
"en": "Old version of a content management framework written in PHP",
|
||||
"fr": "Ancienne version d'un système de gestion de contenu écrit en PHP"
|
||||
},
|
||||
"version": "7.67~ynh1",
|
||||
"url": "https://www.drupal.org",
|
||||
|
@ -38,8 +38,8 @@
|
|||
"en": "Choose a path for Drupal 7",
|
||||
"fr": "Choisissez un chemin pour Drupal 7"
|
||||
},
|
||||
"example": "/example",
|
||||
"default": "/example"
|
||||
"example": "/drupal7",
|
||||
"default": "/drupal7"
|
||||
},
|
||||
{
|
||||
"name": "admin",
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue