From cc8fbe6da7a0fbf2d0dd48209fdaea2e3f2d6ad1 Mon Sep 17 00:00:00 2001 From: Tom Wiesing Date: Mon, 6 Dec 2021 12:10:12 +0100 Subject: [PATCH] utils/wisski_2x_3x.sh: Minor fixes --- distillery/utils/wisski_2x_3x.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/distillery/utils/wisski_2x_3x.sh b/distillery/utils/wisski_2x_3x.sh index f66424a..b4d73f7 100644 --- a/distillery/utils/wisski_2x_3x.sh +++ b/distillery/utils/wisski_2x_3x.sh @@ -1,15 +1,26 @@ #!/bin/bash +set -e +# temporarily extend permissions chmod 777 web/sites/default chmod 666 web/sites/default/*settings.php chmod 666 web/sites/default/*services.yml +# update the core itself composer require 'drupal/core-recommended:^9' 'drupal/core-composer-scaffold:^9' 'drupal/core-project-message:^9' --update-with-dependencies --no-update composer update composer require 'drupal/wisski' -drush updatedb +# update requirements for wisski! +pushd web/modules/contrib/wisski || exit 1 +composer update +popd || exit 1 +# run the update and clear the cache! +drush updatedb --yes +drush cc + +# and reset everything back to normal chmod 755 web/sites/default chmod 644 web/sites/default/*settings.php chmod 644 web/sites/default/*services.yml \ No newline at end of file