Add distillery/utils/use_wisski.sh

This commit is contained in:
Tom Wiesing 2021-12-20 12:00:56 +01:00
parent 0809fd166f
commit 48ee6ce862
No known key found for this signature in database
GPG key ID: DC1F29F2BC78AB15

View file

@ -0,0 +1,22 @@
#!/bin/bash
set -e
# read user
VERSION=$1
if [ -z "$VERSION" ]; then
echo "Usage: use_wisski.sh VERSION"
exit 1
fi
# update the main modules
cd /var/www/data/project
chmod u+rw web/sites/default/
composer require "drupal/wisski:$VERSION"
# update the wisski dependencies
pushd /var/www/data/project/web/modules/contrib/wisski
composer update
popd
# update the db
drush -y updatedb