utils/wisski_2x_3x.sh: Minor fixes
This commit is contained in:
parent
760e41b415
commit
cc8fbe6da7
1 changed files with 12 additions and 1 deletions
|
|
@ -1,15 +1,26 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# temporarily extend permissions
|
||||||
chmod 777 web/sites/default
|
chmod 777 web/sites/default
|
||||||
chmod 666 web/sites/default/*settings.php
|
chmod 666 web/sites/default/*settings.php
|
||||||
chmod 666 web/sites/default/*services.yml
|
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 require 'drupal/core-recommended:^9' 'drupal/core-composer-scaffold:^9' 'drupal/core-project-message:^9' --update-with-dependencies --no-update
|
||||||
composer update
|
composer update
|
||||||
composer require 'drupal/wisski'
|
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 755 web/sites/default
|
||||||
chmod 644 web/sites/default/*settings.php
|
chmod 644 web/sites/default/*settings.php
|
||||||
chmod 644 web/sites/default/*services.yml
|
chmod 644 web/sites/default/*services.yml
|
||||||
Loading…
Add table
Add a link
Reference in a new issue