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

Merge pull request #17 from YunoHost-Apps/testing

Testing
This commit is contained in:
yalh76 2019-12-28 00:22:24 +01:00 committed by GitHub
commit 484ac7652e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 6 deletions

View file

@ -44,7 +44,6 @@ LDAP module can be installed
Developers info 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). 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. To try the testing branch, please proceed like that.

View file

@ -44,7 +44,6 @@ le module d'authentification LDAP peut être installé
Informations pour les développeurs 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). 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. Pour essayer la branche testing, procédez comme suit.

View file

@ -3,8 +3,8 @@
"id": "drupal7", "id": "drupal7",
"packaging_format": 1, "packaging_format": 1,
"description": { "description": {
"en": "Drupal 7 for YunoHost application.", "en": "Old version of a content management framework written in PHP",
"fr": "Drupal 7 pour YunoHost." "fr": "Ancienne version d'un système de gestion de contenu écrit en PHP"
}, },
"version": "7.67~ynh1", "version": "7.67~ynh1",
"url": "https://www.drupal.org", "url": "https://www.drupal.org",
@ -38,8 +38,8 @@
"en": "Choose a path for Drupal 7", "en": "Choose a path for Drupal 7",
"fr": "Choisissez un chemin pour Drupal 7" "fr": "Choisissez un chemin pour Drupal 7"
}, },
"example": "/example", "example": "/drupal7",
"default": "/example" "default": "/drupal7"
}, },
{ {
"name": "admin", "name": "admin",

View file

@ -144,6 +144,8 @@ ynh_print_info --message="Installing Drupal..."
chown -R $app: $final_path chown -R $app: $final_path
update-alternatives --set php /usr/bin/php7.2
pushd "$final_path" pushd "$final_path"
sudo -u $app env PATH=$PATH drush pm-download drupal-7 --drupal-project-rename=$app sudo -u $app env PATH=$PATH drush pm-download drupal-7 --drupal-project-rename=$app
popd 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 pm-update
sudo -u $app env PATH=$PATH drush @$app core-cron sudo -u $app env PATH=$PATH drush @$app core-cron
update-alternatives --set php /usr/bin/php7.0
#================================================= #=================================================
# SETUP THE CRON FILE # 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" ynh_backup_if_checksum_is_different --file="$final_path/$app/sites/default/settings.php"
export PATH="$final_path/.composer/vendor/bin:$PATH" 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 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 cache-clear all
sudo -u $app env PATH=$PATH drush @$app pm-update -y drupal 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-refresh
sudo -u $app env PATH=$PATH drush @$app l10n-update sudo -u $app env PATH=$PATH drush @$app l10n-update
update-alternatives --set php /usr/bin/php7.0
#================================================= #=================================================
# STORE THE CONFIG FILE CHECKSUM # STORE THE CONFIG FILE CHECKSUM
#================================================= #=================================================