From 2cd56a6f97f03577cf2a88b0fe055cf6f75af6a8 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 23 Mar 2021 19:59:49 +0100 Subject: [PATCH] ynh_exec_warn_less --- scripts/install | 28 ++++++++++++++-------------- scripts/upgrade | 14 +++++++------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/scripts/install b/scripts/install index 5cbb994..b1dd3b2 100644 --- a/scripts/install +++ b/scripts/install @@ -144,22 +144,22 @@ chown -R $app: $final_path update-alternatives --set php /usr/bin/php$phpversion pushd "$final_path" - sudo -u $app env PATH=$PATH drush pm-download -y drupal-7 --drupal-project-rename=$app + ynh_exec_warn_less sudo -u $app env PATH=$PATH drush pm-download -y drupal-7 --drupal-project-rename=$app popd -sudo -u $app env PATH=$PATH drush @$app site-install $install_profil --account-name=$admin --account-pass=$password --account-mail=$admin_mail --db-url=mysql://$db_user:$db_pwd@localhost/$db_name --site-name="$app" --locale=$language --yes -sudo -u $app env PATH=$PATH drush @$app pm-download drush_language -#sudo -u $app env PATH=$PATH drush @$app pm-download ldap -#sudo -u $app env PATH=$PATH drush @$app pm-enable -y ldap_servers ldap_user ldap_authentication ldap_authorization ldap_authorization_drupal_role -sudo -u $app env PATH=$PATH drush @$app pm-download l10n_update -sudo -u $app env PATH=$PATH drush @$app pm-enable -y l10n_update -sudo -u $app env PATH=$PATH drush @$app language-add $language -sudo -u $app env PATH=$PATH drush @$app language-default $language -sudo -u $app env PATH=$PATH drush @$app cache-clear drush -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 pm-update -sudo -u $app env PATH=$PATH drush @$app core-cron +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app site-install $install_profil --account-name=$admin --account-pass=$password --account-mail=$admin_mail --db-url=mysql://$db_user:$db_pwd@localhost/$db_name --site-name="$app" --locale=$language --yes +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app pm-download drush_language +#ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app pm-download ldap +#ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app pm-enable -y ldap_servers ldap_user ldap_authentication ldap_authorization ldap_authorization_drupal_role +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app pm-download l10n_update +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app pm-enable -y l10n_update +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app language-add $language +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app language-default $language +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app cache-clear drush +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app l10n-update-refresh +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app l10n-update +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app pm-update +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app core-cron update-alternatives --set php /usr/bin/php${YNH_DEFAULT_PHP_VERSION} diff --git a/scripts/upgrade b/scripts/upgrade index 3f36ef7..47d0684 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -110,13 +110,13 @@ export PATH="$final_path/.composer/vendor/bin:$PATH" update-alternatives --set php /usr/bin/php$phpversion -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 -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 -sudo -u $app env PATH=$PATH drush @$app variable-set --exact maintenance_mode 0 +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app variable-set --exact maintenance_mode 1 +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app cache-clear all +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app pm-update -y drupal +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app cache-clear all +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app l10n-update-refresh +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app l10n-update +ynh_exec_warn_less sudo -u $app env PATH=$PATH drush @$app variable-set --exact maintenance_mode 0 update-alternatives --set php /usr/bin/php${YNH_DEFAULT_PHP_VERSION}